SelectViewController *select = [[SelectViewController alloc] init];
select.arrStr = @"ALL";
select.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) {
select.providesPresentationContextTransitionStyle = YES;
select.definesPresentationContext = YES;
select.modalPresentationStyle = UIModalPresentationOverCurrentContext;
[self presentViewController:select animated:YES completion:nil];
} else {
self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:select animated:NO completion:nil];
self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationFullScreen;
}
模态背景半透明
最新推荐文章于 2022-07-21 15:06:31 发布