I run into the following problem. In my iPad app using storyboard.
-(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
returns nil so everything it try to get return nil and gives an exemption?
So how do i instantiate self.storboard
.
Use below code to instantiate your storyboard
self.storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPad" bundle:nil];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With