首页 > 移动平台 > 详细

IOS7、8模态半透明弹出框

时间:2016-01-24 12:59:53      阅读:166      评论:0      收藏:0      [点我收藏+]

//源Controller中跳转方法实现  

 MKDialogController *controller = [[MKDialogController alloc] init];  

 controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;  

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

    controller.providesPresentationContextTransitionStyle = YES;  

   controller.definesPresentationContext = YES;  

  controller.modalPresentationStyle = UIModalPresentationOverCurrentContext;  

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

 } else {  

   self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext;  

     [self presentViewController:controller animated:NO completion:nil];  

   self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationFullScreen;  

}  

// 只不过跳转后没有动画效果,有待优化

IOS7、8模态半透明弹出框

原文:http://www.cnblogs.com/56ik/p/5154960.html

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