Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Latest commit

 

History

History
18 lines (10 loc) · 711 Bytes

File metadata and controls

18 lines (10 loc) · 711 Bytes

OTHERAppStoreUpdateChecker

The OTHERAppStoreUpdateChecker class provides a method that uses the iTunes App Store API to check if a version of the app with a different version number is available in the App Store.

Example:

[OTHERAppStoreUpdateChecker checkForUpdatesWithAppleID:@"123456789" completionBlock:^(BOOL updateAvailable, NSDictionary *results, NSError *error) {
	
	if (error == nil && updateAvailable) {

		NSString *newVersionNumber = [results objectForKey:OTHERAppStoreUpdateCheckerVersionKey];
		NSString *whatsNew = [results objectForKey:OTHERAppStoreUpdateCheckerWhatsNewKey];
		NSString *appStoreURL = [results objectForKey:OTHERAppStoreUpdateCheckerAppStoreURLKey];
	}
}];