1. There are two VCs in storyBoard, each with navigation.
2. AVC jump method to BVC, button connection method
- (IBAction)clickBtnToBvc:(id)sender {
BViewController *vc = [[BViewController alloc]init];
[self.navigationController pushViewController:vc animated:YES];
}
3.BVC black screen, what is the reason?
世界只因有你2017-05-31 10:35:00
Your B is created in the storyboard and bound to the control, so it needs to be loaded from the storyboard
BViewController * vc = [[UIStoryboard storyboardWithName:@"storyboard" bundle:nil] instantiateViewControllerWithIdentifier:@"IDENTITY"];
[self.navigationController pushViewController:vc animated:YES];