蒙板_upView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
2015-10-21 13:59
387 查看
//加到window上,由于再加上的view也透明了 所以用以下方法解决
self.upView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HIGHT);_upView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];[WINDOW addSubview:self.upView];UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];[self.upView addGestureRecognizer:tap];
相关文章推荐
- Could notconnect to ASM due to following error ORA-01031:insufficientprivileges
- request.getRequestdispacher("result.jsp“).forward(request,response)与response.sendRedirect()重定向
- ueditor上传视频控件,如何获得上传文件的路径?
- JAVA三星题之Eight Queens
- 简单阐述下OC中UIImage三种创建方式~~~
- iOS:模态弹出窗控制器UIPopoverPresentationController
- UIImagePickerController详解
- '<', hexadecimal value 0x3C, is an invalid attribute character. Line 21, position 29.
- 最长单调递增公共子序列(路径记录+poj2127+zoj2432)Greatest Common Increasing Subsequence
- Greatest Common Increasing Subsequence(最长单调递增公共子序列+hdu1423)
- SOAPUI压力测试的参数配置
- SpriteBuilder中CCMotionStreak坐标类型不匹配
- SpriteBuilder中CCMotionStreak坐标类型不匹配
- SpriteBuilder中CCMotionStreak坐标类型不匹配
- 开机NTP服务器报错ntpd_intres++ntp_intres.request:+permission+denied
- 纯代码编写UITableView和UICollectionView中的坑
- iOS9 中UIStackView的使用
- NGUI使用心得之使用TexturePacker创建图集
- UITableView全面讲解
- UIViewController