A Flipboard-like update checker.
Copy in your project classes
Upload a file to a web server and set the value of REMOTE_VERSION_FILE
File should contain just the version number, e.g. 1.2
- Set the value of APP_NAME
Whenever you like to check for a new version just use this code.
SMUpdateNotifier *n = [[SMUpdateNotifier alloc] initWithDelegate:self];
Your class should implement the
SMUpdaterDelegate, which has three delegate methods
-(void) newVersionExists:(NSString *)versionNumber
-(void) requestFailedwithError:(NSError *) error
Names should be pretty self-explanatory :)
Check out the code in the application delegate to see an example.