Skip to content

Instantly share code, notes, and snippets.

@Sjors
Created April 10, 2013 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sjors/5356100 to your computer and use it in GitHub Desktop.
Save Sjors/5356100 to your computer and use it in GitHub Desktop.
NSNumber* appHasMoved = [JSON objectForKey:@"app_has_moved"];
if(appHasMoved != nil && [appHasMoved boolValue]) {
// Notify the user that the app has moved.
[[NSNotificationCenter defaultCenter] postNotificationName:@"AppHasMoved"
object:self
userInfo:@{
@"new_app_location" : [JSON objectForKey:@"new_app_location"],
@"app_has_moved_message" : [JSON objectForKey:@"app_has_moved_message"],
@"app_has_moved_title" : [JSON objectForKey:@"app_has_moved_title"]
}
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment