我将如何推oneviewcontroller
送到另一个viewcontroller
没有 nib 文件的内容?
这就是我目前正在做的事情。虽然没有 nib 文件,UserViewController
但我仍在使用initWithNibName:@"UserViewController"
-(IBAction)userProfile:(id)sender {
UserViewController *userViewController = [[UserViewController alloc]
initWithNibName:@"UserViewController" bundle:nil];
[self.navigationController pushViewController:userViewController animated:YES ];
[userViewController release];
}
谢谢你的帮助!!!