解决Label在Simulator的debug Color Bl
2017-01-09 本文已影响86人
winlee
未修改前显示红色, 表示layer层需要优化

修改Label的layer
self.detailTextLabel.layer.masksToBounds = YES;
// 下面这两个是做离层渲染用的, 当视图显示的为动态内容时使用
// self.detailTextLabel.layer.shouldRasterize = YES;
// self.detailTextLabel.layer.rasterizationScale = [UIScreen mainScreen].scale;
修改后显示绿色, 表示layer层已经优化好了
