我遇到了以下问题。在我的 iPad 应用程序中使用情节提要。
-(UIViewController *)SetDetailVideoView
{
// assign/instantiate self. storyboard, but how?
VideosViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"VideoViewController"]; //empty but why? Because self.storyboard is empty
NSLog(@"%@",self.storyboard); //NULL
return vc;
}
Self.storyboard
返回nil所以它试图获得 return nil 并给予豁免?那么我如何实例化self.storboard
。