Skip to content

Instantly share code, notes, and snippets.

@nwg
Created May 30, 2012 00:44
Show Gist options
  • Save nwg/2831766 to your computer and use it in GitHub Desktop.
Save nwg/2831766 to your computer and use it in GitHub Desktop.
[Socialize setEntityLoaderBlock:^(UINavigationController *navigationController, id<SocializeEntity>entity) {
if ([[entity key] isEqualToString:@"key1"]) {
Loader1 *loader1 = [[[Loader1 alloc] initWithEntity:entity] autorelease];
[navigationController pushViewController:loader1 animated:YES];
} else if ([[entity key] isEqualToString:@"key2"]) {
Loader2 *loader2 = [[[Loader1 alloc] initWithEntity:entity] autorelease];
[navigationController pushViewController:loader2 animated:YES];
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment