【发布时间】:2011-07-21 03:51:50
【问题描述】:
我的视图中有一个标签。缩放视图后,标签看起来有点模糊,分辨率丢失。缩放后如何保持分辨率。
这是我的缩放代码
secondView.transform = CGAffineTransformIdentity;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
secondView.transform = CGAffineTransformMakeScale(2 ,2);
[UIView commitAnimations];
[self.view bringSubviewToFront:secondView];
【问题讨论】:
-
你的 secondView.contentMode 属性值是多少?
-
我根本没有设置那个属性..
-
我猜你没有,但我确实问过这个属性值是多少,没关系。尝试将其设置为 *Redraw 以强制重绘或自行重绘视图。视图被缓存(一种位图),并且这些位图会根据某些属性的更改等进行放大/缩小。
标签: iphone uiview uilabel scaling