美文网首页
2019-06-18弹出透明控制器方法

2019-06-18弹出透明控制器方法

作者: 执着的人请保持微笑 | 来源:发表于2019-06-18 18:06 被阅读0次

    弹出透明导航控制器

    CommonReplyController *vc = [CommonReplyController new];

            UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:vc];

            navi.view.backgroundColor = [UIColor clearColor];

            if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) {

                vc.modalPresentationStyle=UIModalPresentationOverCurrentContext;

                navi.modalPresentationStyle = UIModalPresentationOverCurrentContext;

            }else{

                self.modalPresentationStyle=UIModalPresentationCurrentContext;

                navi.modalPresentationStyle = UIModalPresentationCurrentContext;

            }

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

    弹出透明控制器

    CommonReplyController *vc = [CommonReplyController new];

            if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) {

                vc.modalPresentationStyle=UIModalPresentationOverCurrentContext;

            }else{

                self.modalPresentationStyle=UIModalPresentationCurrentContext;

            }

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

    相关文章

      网友评论

          本文标题:2019-06-18弹出透明控制器方法

          本文链接:https://www.haomeiwen.com/subject/fwrqqctx.html