jackyshan

导航

 

现象:代码在simulator上能够正常运行但是在真机上出现
Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.137/UIView.m:8803
(ios7系统)

解决方法: 在layoutSublayersOfLayer中调用> [self.view layoutSubviews];

- (void)layoutSublayersOfLayer:(CALayer *)layer {
    [self layoutSubviews];
}
posted on 2016-04-06 14:20  jackyshan  阅读(182)  评论(0编辑  收藏  举报