首页 > 其他 > 详细

present出ViewController的页面为透明的

时间:2015-08-19 20:21:54      阅读:230      评论:0      收藏:0      [点我收藏+]

#pragma mark -- 实现的重点在于modalPresentationStyle这个属性的使用和推出页面背景色的设置


 SSViewController *ssVC = [[SSViewController alloc] init];

 ssVC.modalPresentationStyle = UIModalPresentationOverFullScreen;

 [ViewController presentViewController:ssVC animated:YES completion:^{

        

  }];


同时将SSViewController的背景色设置成 clearColor

- (instancetype)init{

    self = [super init];

    if (self) {

        self.view.backgroundColor = [UIColor clearColor];

    }

    return self;

}



版权声明:本文为博主原创文章,未经博主允许不得转载。

present出ViewController的页面为透明的

原文:http://blog.csdn.net/a_ss_a/article/details/47786393

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!