Antialiasing edges of UIView after transformation using CALayer's transform

后端 未结 4 1042
别跟我提以往
别跟我提以往 2020-12-12 22:44

I have a UIView object that rotates using CALayer\'s transform:

// Create uiview object.
UIImageView *block = [[UIImageView alloc]          


        
4条回答
  •  再見小時候
    2020-12-12 23:13

    check allowsEdgeAntialiasing property of CALayer.

    block.layer.allowsEdgeAntialiasing = YES; // iOS7 and above.
    

提交回复
热议问题