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];