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

2019-06-18  本文已影响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];

上一篇下一篇

猜你喜欢

热点阅读