UIView 的转换看起来很糟糕 [英] UIView's transform looks terrible
本文介绍了UIView 的转换看起来很糟糕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个简单背景的简单视图.我需要旋转视图及其内容.代码在这里:
I have a simple view with simple background. I need to rotate the view with it's content. The code is here:
CGAffineTransform r = CGAffineTransformMakeRotation(5 * M_PI / 180.0f);
backView.transform = r;
我找不到并让它看起来不错.
I can't find and way make it look nice.
截图如下:
推荐答案
您可以使用密钥 UIViewEdgeAntialiasing
in info.plist:
You can use the key UIViewEdgeAntialiasing
in info.plist:
但正如文档所说,这会对性能产生显着影响.
But as the documentation says, this can have a noticeable impact on performance.
这篇关于UIView 的转换看起来很糟糕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文