ios 模态半透明弹出框
2016-03-18 14:00
429 查看
<span style="color:#FF0000;">1. didSelectRowAtIndexPath</span> if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) { detailVC.providesPresentationContextTransitionStyle = YES; detailVC.definesPresentationContext = YES; detailVC.modalPresentationStyle = UIModalPresentationOverCurrentContext; [self presentViewController:detailVC animated:YES completion:^{ }]; }else { self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext; [self presentViewController:detailVC animated:YES completion:^{ }]; }
2. 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.6; [self.view addSubview:baseView]; [self.view addSubview:alphaView];
相关文章推荐
- iOS 证书
- 【整理】BIOS、BootLoader、uboot对比
- ios 字符串转date,模拟器ok,真机不ok,
- iOS核心动画高级技巧一
- iOS计时器NSTimer的使用
- nagios监控系统安装
- iOS-----About Asset Catalog
- nagios短信监控
- ios开发中,联系人列表是怎样通过名字排序分组的(支持中文排序)
- IOS项目自动生成技术文档很方便实用
- iOS模拟Tom猫的简单界面
- iOS下bound,center和frame
- iOS cocoapods的详解大全及其flex
- iOS8之后CoreLocation定位的使用
- 理清关于iOS各个证书的关系以及作用
- iOS多线程之NSThread
- iOS中数据存储的几种代码实现
- IOS 设置label中划线、下划线
- index++和index+1严重区别
- iOS分类中通过runtime添加动态属性