1.原因:
采用self.storyboard时,获得的storyboard对象为空
2.修改方法:
初始化一个storyboard对象,然后使用这个对象获得相应的viewcontroller;
3.代码演示:
UIStoryboard *stroyboard = [UIStoryboard storyboardWithName:@"Setting" bundle:nil];
PerfectPersonalInfoViewController *infoVC = [stroyboard instantiateViewControllerWithIdentifier:@"PerfectPersonalInfoVCStoryBoardID"];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:infoVC];
infoVC.info = data;
infoVC.detail = wechatinfo;
[self presentViewController:nav animated:YES completion:nil];