模态全屏模式,实现半透明效果

self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext; //半透明

        BiaoQianViewController *biaoQianVC = [[BiaoQianViewController alloc] init];

        biaoQianVC.modalPresentationStyle = UIModalPresentationOverFullScreen;

        biaoQianVC.view.frame = self.view.frame;

        [self presentViewController:biaoQianVC animated:YES completion:nil];

posted @ 2015-09-23 13:43  xiaoxiaoxigua  阅读(266)  评论(0编辑  收藏  举报