Assertion failure in UITableViewCell layoutSublayersOfLayer解决办法

iOS6 设备在更新UITableViewCell的时候遇到了

Assertion failure in -[UITableViewCell layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2380.17/UIView.m:5776

的问题,

解决方法是,把UITableViewCell里面的控件的添加方式由

[self addSubview:self.titleLabel];

改成

[self.contentView addSubview:self.titleLabel];
posted @ 2015-10-12 16:55  大大VS小小  阅读(149)  评论(0编辑  收藏  举报