ios - Modal presentation view in objective C is displaying NULL when I display NSLog(@"formView : %@",self.navigationController.viewControllers); -
when want see views in navigation controller when open second view in formsheet style first view, displays me (null).
for example:
i open second view modally in popover mode:
formviewcontroller *destviewcontroller = [[uistoryboard storyboardwithname:@"main" bundle:nil] instantiateviewcontrollerwithidentifier:@"formview"]; destviewcontroller.delegate = self; destviewcontroller.typeform = @"accesscontrolform"; [self presentviewcontroller:destviewcontroller animated:yes completion:nil];
i put code in second view:
nslog(@"formview : %@",self.navigationcontroller.viewcontrollers);
it displays (null). tried find way display second view in "push controller", works, problem cannot display push mode in formsheet appearance (can't i?)...
Comments
Post a Comment