Check if my app has a new version on AppStore
Here is a simple code snippet that lets you know if the current version is different -(BOOL) needsUpdate{ NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString* appID = infoDictionary[@”CFBundleIdentifier”]; NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@”http://itunes.apple.com/lookup?bundleId=%@”, appID]]; NSData* data = [NSData dataWithContentsOfURL:url]; NSDictionary* lookup = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; if ([lookup[@”resultCount”] integerValue] == 1){ NSString* appStoreVersion = … Read more