关于ios 13 使用 presentViewController 时出现显示不全的问题

如果是13以下的系统这样使用时没问题的。因为官方默认为全屏。

 OptFunPage_TBC_VC *OptFunPage_VC=[[OptFunPage_TBC_VC alloc]init];

  [self presentViewController:OptFunPage_VC animated:YES completion:nil];


IOS13之后需要设置模式:modalPresentationStyle

 OptFunPage_TBC_VC *OptFunPage_VC=[[OptFunPage_TBC_VC alloc]init];  

OptFunPage_VC.modalPresentationStyle = 0;

  [self presentViewController:OptFunPage_VC animated:YES completion:nil];

你可能感兴趣的:(关于ios 13 使用 presentViewController 时出现显示不全的问题)