bug - colorWithPatternImage:

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

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

    // 解决方案

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

你可能感兴趣的:(bug - colorWithPatternImage:)