iOS小技巧---解決image縮放、動畫產生矩齒的問題

1.spa

有沒有辦法去除UIImageView旋轉時產生的鋸齒

imageView.layer.allowsEdgeAntialiasing = YES;       //  OC


2.衣廚    搭配時    邊框 縮放 有 矩齒
code

self.layer.borderWidth = 2/sqrt( self.transform.a*self.transform.a + self.transform.b*self.transform.b)orm

            self.layer.borderColor = UIColor.CustomRed().CGColorform


            self.layer.allowsEdgeAntialiasing = true     //抗矩齒性class

相關文章
相關標籤/搜索