How to stop UITableView from clipping UITableViewCell contents in iOS 7
2024-09-22 04:27:53
It looks like the view hierarchy changed slightly in ios7 for table view cells.
You can try setting the clips to bounds on the contentView's superview:
[cell.contentView.superview setClipsToBounds:NO];
If you add the following to your sample code and run on ios7 vs ios6, you'll see there's an additional view between the cell view and content view:
[cell.contentView.superview setClipsToBounds:NO];
NSLog(@"%@", cell.contentView.superview);
NSLog(@"%@", cell.contentView.superview.superview);
NSLog(@"%@", cell);
if(self.view.clipsToBounds){
NSLog(@"Master clips");
}else{
NSLog(@"Master no clip");
}
参考:http://stackoverflow.com/questions/18877895/how-to-stop-uitableview-from-clipping-uitableviewcell-contents-in-ios-7
最新文章
- Spring MVC学习笔记——POJO和DispatcherServlet
- 【液晶模块系列基础视频】5.4.X-GUI字体驱动4
- HDU 5264 pog loves szh I (字符串,水)
- 需要设置jdk的三处位置:
- ceph主要数据结构解析3-Ceph_fs.h文件
- if语句之求一元二次方程
- IOS开发-OC学习-kvc,kvo
- 使用java类破解MyEclipse
- C#、Java之比较
- Redis之(六)配置详解
- CSDN帐号被封
- Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试
- for循环,列表,元组
- C#基础(string)
- Ubuntu服务器的anaconda环境修复办法(自动进入base环境怎么办?)
- Bypass D盾_IIS防火墙SQL注入防御(多姿势)
- 用JavaScript将数字转换为大写金额(收藏)
- IOS 创建简单表视图
- linux 时间设置
- 正则表达式的实践demo
热门文章
- Linux系统profile、bashrc、bash_profile等环境设置文件的使用
- C#中不同格式数据校验的正则表达式
- go语言的特殊变量 iota
- [SoapUI] 循环遍历某个Test Case下的所有Test Step,将Cookie传递给这些Test Step
- CENTOS7 YUM安装BOOST1.53(静态版本)
- cookie与session组件
- gitlab 升级到 5.3 之后不能pull
- JAVA中简单的MD5加密类(MD5Utils)
- unigui不是单个网页相应的链接,而是整体Web Application,如何把webApp的子功能映射到微信公众号菜单?
- PHP开发实用-阿里短信服务(Short Message Service)