我想在视图控制器(如弹出屏幕)上显示一个 popOver 视图控制器。
我使用以下代码:
UIViewController *V2 = [[UIViewController alloc] init]; // V2 is the popup
V2.modalPresentationStyle = UIModalPresentationFormSheet;
V2.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
V2.preferredContentSize = CGSizeMake(800, 600); // size of popup view
[self presentViewController:V2 animated:YES completion:nil];
它正在工作,但 popOver 视图也变暗了。请帮助我。