Skip to content

Instantly share code, notes, and snippets.

@nwg
Created March 9, 2012 20:40
Show Gist options
  • Save nwg/2008558 to your computer and use it in GitHub Desktop.
Save nwg/2008558 to your computer and use it in GitHub Desktop.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Socialize storeUIErrorAlertsDisabled:YES];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(errorNotification:) name:SocializeUIControllerDidFailWithErrorNotification object:nil];
return YES;
}
- (void)errorNotification:(NSNotification*)notification {
NSError *error = [[notification userInfo] objectForKey:SocializeUIControllerErrorUserInfoKey];
NSLog(@"Error: %@", [error localizedDescription]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment