DViewController *tovc = [[DViewController alloc]init];
tovc.view.backgroundColor=[UIColor colorWithWhite:0 alpha:0.4];
//关键语句,必须有
tovc.modalPresentationStyle = UIModalPresentationOverFullScreen;
[self presentViewController:tovc animated:NO completion:nil];
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交