跳转前设置透明:
dataVC.view.backgroundColor=[UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
[self presentViewController:dataVC animated:NO completion:nil];
在跳转后的视图控制器设置:
self.modalPresentationStyle = UIModalPresentationOverCurrentContext;
跳转前设置透明:
dataVC.view.backgroundColor=[UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
[self presentViewController:dataVC animated:NO completion:nil];
在跳转后的视图控制器设置:
self.modalPresentationStyle = UIModalPresentationOverCurrentContext;