1.原因:
采用self.storyboard時掸绞,獲得的storyboard對象為空
2.修改方法:
初始化一個storyboard對象,然后使用這個對象獲得相應(yīng)的viewcontroller咽安;
3.實例
UIStoryboard *stroyboard = [UIStoryboard ? storyboardWithName:@"XXX"bundle:nil];
PhoneRegisterController *infoVC = [stroyboard ? instantiateViewControllerWithIdentifier:@"PhoneRegisterControllerID"];
[self.navigationController ?pushViewController:prVCanimated:YES];