My problem is basically the same as this one . I have a UIView, and when I rotate it using CGAffineTransformMakeRotation, the edges are not smoothing.
I tried both adding a view as a preview in a larger UIView, and using a transparent border in the view, but none of them worked.
The OP of the above post decided to do this by creating an image with transparent borders in Photoshop and using UIImageView instead, but I can't do the same because the size of the UIView is determined at runtime.
Does anyone know of any solutions to this problem?
Please note that this is not a duplicate of this , because I am interested in using UIView and NOT UIImageView.
Kremk
source share