bug - colorWithPatternImage:

   // ios5之前, 再通过以下方法设置背景时, 有闪屏bug

    self.view.backgroundColor = [UIColor colorWithPatternImage:<#(nonnull UIImage *)#>];

    // 解决方案

    self.view.layer.contents = (id)[UIColor colorWithPatternImage:[UIImage imageNamed:xxx]];

posted @ 2016-02-17 10:54  guangleijia  阅读(178)  评论(0编辑  收藏  举报