“Renders with edge antialiasing” causes delay in UIAlertView in iOS 7

后端 未结 1 1246
情歌与酒
情歌与酒 2021-02-08 06:40

Ever since iOS 7, I noticed my UIAlertViews show with a sort of drawing delay- what happens is the screen dims and the UIAlertView\'s text appears on the screen for just a split

1条回答
  •  我在风中等你
    2021-02-08 06:56

    "Renders with edge antialiasing" is very expensive! Use with caution.

    Use this little trick instead:

        view.layer.borderWidth = 1;
        view.layer.borderColor = [UIColor clearColor].CGColor;
        view.layer.rasterizationScale = [UIScreen mainScreen].scale;
        view.layer.shouldRasterize = YES;
    

    0 讨论(0)
提交回复
热议问题