iPhone app on iPad: UILabel pixelated during rotation?
I tried my iPhone app (not universal) on iPad 2 just for a test... and I noticed something strange.
In a view I have some UILabel
(inside an UIImageView
) that spin, float and collide with each other, but on iPad 2 the labels are drawn as pixelated when they rotate. I mean obviously in x1 mode. I still hadn't a chance to test on iPad 1.
I have implemented rotation and displacement with NSTimer (scheduled with time interval of 0.05). No problem with UIImageView
objects, only with UILabel
objects. The effect is really horrible.
Any suggestions? Thanks in advance
已经有一段时间了,但我回到了这个问题,我通过设置用CGAffineTransformMakeRotation
转换的UIView
对象的shouldRasterize
来解决它:
subview.layer.shouldRasterize = YES;
链接地址: http://www.djcxy.com/p/95780.html