Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个非矩形的uiview。
在一些帖子中建议使用Quartz 2d Paths,但我现在一无所知,以前从未使用过 Quartz 2d。
有没有其他方法可以将uiview的矩形体转换成这个?
谢谢
您需要深入了解 CALayer 转换。
试试这个: 如何将透视变换应用于 UIView?
苹果文档: https ://developer.apple.com/library/ios/DOCUMENTATION/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html