IOS7、8模态半透明弹出框
来源:互联网 发布:java svn api 编辑:程序博客网 时间:2024/06/06 07:29
//源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; }
self.view.backgroundColor = [UIColor clearColor]; UIView *alphaView = [[UIView alloc] initWithFrame:self.view.frame]; UIView *baseView = [[UIView alloc] initWithFrame:self.view.frame]; alphaView.backgroundColor = [UIColor clearColor]; baseView.backgroundColor = [UIColor blackColor]; baseView.alpha = 0.7; [self.view addSubview:baseView]; [self.view addSubview:alphaView];
3 0
- IOS7、8模态半透明弹出框
- IOS7、8模态半透明弹出框
- IOS7、8模态半透明弹出框
- ios 模态半透明弹出框
- iOS7、8如何present模态半透明控制器探讨
- ios7实现全屏模态半透明页面的效果
- iOS 模态窗口居中弹出背景半透明
- 模态与push导致弹出半透明背景不同
- PopUpWindow实现半透明弹出框关键点
- IOS弹出一个半透明的框
- Android Alertdialog弹出框设置半透明背景
- Android实现底部半透明弹出框PopUpWindow
- Ajax弹出半透明层
- 弹出半透明黑色遮罩层
- 半透明弹出层
- 如何弹出半透明UIViewController
- presentViewController 弹出半透明ViewController
- IOS7风格弹出框-支持block回调
- 向 AppStore iOS 苹果appstore 提交新版本app出现问题
- SQL语句操作ALTER
- 没有找到 MSVCR120D.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。
- C/C++网络编程总结与ZeroMQ——[架构设计]
- Flex 日志管理
- IOS7、8模态半透明弹出框
- Android开发屏幕适配知识点
- IOS 编译错误,iOS compile error: no visible @interface for 'CDVCommandDelegateImpl' declares the selector
- 关于链接库的一些备忘
- webX
- 从SDE库文件手工删除SDE图层
- 智能家居布局:小米牵手美的,格力有点着急
- Android操作HTTP实现与服务器通信
- FM下的checkbox无法改变字体颜色解决