ios - "Renders with edge antialiasing" Makes UIViews look worse with transform -
i have uiviews have transform both translation , rotation , looking aliased turned on "renders edge antialiasing" in -info.plist , makes worse!
instead of being jaggy, seem have black mixed in jaggy edges. there shadow, layer behind not black.
is there i'm missing here?
i found lot of different advice on this, seems "renders edge antialiasing" doesn't lot in grand scheme of things. however, helps little solution found below:
self.layer.shouldrasterize = yes; self.layer.rasterizationscale = [[uiscreen mainscreen] scale];
these 2 lines go on uiview gets transformed layer [uicolor clearcolor] background. colors or images or content subview. otherwise, rounded corners i'm using, saw little black on edges.
Comments
Post a Comment