Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example to implement a Flipboard-like new version checker

branch: master
README.md

Flipboard-like update checker

A Flipboard-like update checker.

  1. Copy in your project classes SMUpdateNotifier, SMURLConnection and protocol SMUpdaterDelegate

  2. 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

  3. Set the value of APP_NAME
  4. Whenever you like to check for a new version just use this code.

    SMUpdateNotifier *n = [[SMUpdateNotifier alloc] initWithDelegate:self];
    [n checkIfNewVersionExists];

  5. Your class should implement the SMUpdaterDelegate, which has three delegate methods

    -(void) newVersionExists:(NSString *)versionNumber
    -(void) thereIsNoNewVersion
    -(void) requestFailedwithError:(NSError *) error

Names should be pretty self-explanatory :)

Check out the code in the application delegate to see an example.

Something went wrong with that request. Please try again.