iOS13后,presentViewController不能铺满全屏(oc版)
BaseNavViewController *navVc = [[BaseNavViewController alloc] initWithRootViewController:loginVc];
//加上下面这句=0的代码,登录页就顶到最上面去了
navVc.modalPresentationStyle = UIModalPresentationCustom
;
如果你确实需要自定义模态呈现样式,你可以尝试使用UIModalPresentationCustom
,但这需要配合自定义的转场动画来实现。
[self presentViewController:navVc animated:YES completion:nil];