Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'd like to display to the user when my app was last updated. On android I say:

PackageInfo p = a.PackageManager.GetPackageInfo(a.ApplicationInfo.PackageName, PackageInfoFlags.MetaData);
TextView lastUpdated = messageView.FindViewById<TextView>(Resource.Id.lastUpdated);
DateTime dt = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
lastUpdated.Text = "App Updated on " + dt.AddMilliseconds(p.LastUpdateTime).ToLocalTime().ToString("MM-dd-yyyy");

How can I do something similar for iOS?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
184 views
Welcome To Ask or Share your Answers For Others

1 Answer

from the below itune app search api you can get your app details.
http://itunes.apple.com/lookup?bundleId=yourBundleID&country=appCountry

simple download the file from the url at runtime and read the data as json string, now in obtained result you can get your current version release date from key currentVersionReleaseDate


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...