[英]Creating a non-rectangular uiview
I need to create a uiview with non-rectangular shape. 我需要创建一个非矩形的uiview。
Using Quartz 2d Paths is suggested in some post but i am clueless at this point and never worked with quartz 2d before. 在某些文章中建议使用Quartz 2d路径 ,但是我对此一无所知,以前从未使用过石英2d。
Is there a any other ways to transform uiview's rectangular body into this one? 还有其他方法可以将uiview的矩形体转换为此吗?
Thanks 谢谢
You'll want to dive into the CALayer transform. 您将要深入CALayer转换。
Try this: How do I apply a perspective transform to a UIView? 尝试以下操作: 如何将透视变换应用于UIView?
Apple docs: https://developer.apple.com/library/ios/DOCUMENTATION/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html 苹果文档: https : //developer.apple.com/library/ios/DOCUMENTATION/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.