【发布时间】:2011-07-24 03:58:15
【问题描述】:
我正在向我的应用程序添加一个简单的 UIView。这工作正常,直到我使用“变换”属性来旋转它:
myView = [[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];
myView.backgroundColor = [UIColor whiteColor];
myView.transform = CGAffineTransformMakeRotation(-0.2);
[self.view addSubview:myView]; //self.view is just another generic UIView
添加的视图已旋转,但边缘呈锯齿状 - 即边缘未经过抗锯齿处理。这是我的意思的一个例子:aliased vs. anti-aliased edges。
到目前为止,我还没有找到任何修复它的方法 - 但可以肯定的是,仅仅旋转 UIView 不会那么难吗? (这同样适用于 UIImageView,我都试过了)。
任何帮助或想法将不胜感激。
【问题讨论】:
标签: iphone cocoa-touch uiview uikit antialiasing