Skip to content

Instantly share code, notes, and snippets.

@mike3k
Created February 27, 2010 03:03
Show Gist options
  • Save mike3k/316432 to your computer and use it in GitHub Desktop.
Save mike3k/316432 to your computer and use it in GitHub Desktop.
NSString *viewName = [_views objectAtIndex:indexPath.row];
Class viewclass = NSClassFromString(viewName);
if (nil != viewclass) {
UIViewController *detailView = [[viewclass alloc] initWithNibName:viewName bundle:nil];
[self.navigationController pushViewController:detailView animated:YES];
[detailView release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment