Skip to content

Instantly share code, notes, and snippets.

@nwg
Created January 24, 2012 00:59
Show Gist options
  • Save nwg/1667068 to your computer and use it in GitHub Desktop.
Save nwg/1667068 to your computer and use it in GitHub Desktop.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// ...
[Socialize setCanLoadEntityBlock:^BOOL(id<SocializeEntity> entity) {
return ![entity.name isEqualToString:@"DeletedEntity"];
}];
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// ...
[Socialize setEntityLoaderBlock:^(UINavigationController *navigationController, id<SocializeEntity>entity) {
SampleEntityLoader *entityLoader = [[[SampleEntityLoader alloc] initWithEntity:entity] autorelease];
[navigationController pushViewController:entityLoader animated:YES];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment