NSString *nibName = @"SampleViewController"
UIViewController *controller = [[UIViewController alloc] initWithNibName:nibName bundle:nil];
使用上面的代码移动到“SampleViewController”xib ......它工作正常,但initWithNibName
方法没有在SampleViewController
. 任何人都可以帮助我触发生命周期方法SampleViewController