在A页面模态弹出B页面,B页面设置modalPresentationStyle属性即可全屏显示.
- (void)BtnClick{
BViewController * VC = [[BViewController alloc]init];
//隐藏tabbar
VC.hidesBottomBarWhenPushed =YES;
/*防止弹出界面不能占满屏幕*/
VC.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:VC animated:YES completion:nil];
}
网友评论