1.storyBoard中有2个VC,分别套了导航。
2.AVC跳转BVC的方法,button连线的方法
- (IBAction)clickBtnToBvc:(id)sender {
BViewController *vc = [[BViewController alloc]init];
[self.navigationController pushViewController:vc animated:YES];
}
3.BVC黑屏,请问是什么原因?
世界只因有你2017-05-31 10:35:00
你的B是在storyboard中创建的并绑定控件,所以要从storyboard加载
BViewController * vc = [[UIStoryboard storyboardWithName:@"storyboard" bundle:nil] instantiateViewControllerWithIdentifier:@"IDENTITY"];
[self.navigationController pushViewController:vc animated:YES];