UIViewController 推出另外一个半透明的UIViewController
UIViewController *controller = [[UIViewController alloc]init];
if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) {
nav.modalPresentationStyle=UIModalPresentationOverCurrentContext;
}else{
nav.modalPresentationStyle=UIModalPresentationCurrentContext;
}
controller.view.backgroundColor = [UIColor colorWithWhite:.0f alpha:.65f];
[self presentViewController:controller animated:YES completion:nil];
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-14 12:13:21