UIStoryboard * sb =
[UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController * peInfo =
[sb instantiateViewControllerWithIdentifier:@"info"];
NSLog(@"%@--%@",self.navigationController,peInfo);
if (self.navigationController && peInfo) {
[self.navigationController pushViewController:peInfo animated:YES];
}else{
[self presentViewController:peInfo animated:YES completion:nil];
}
上面這段代碼 ,在ios14之前都好好的胖替,今天
在ios14.3上被坑了。