Created
April 10, 2013 16:18
-
-
Save Sjors/5356100 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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