作者:羊碧刚_648 | 来源:互联网 | 2023-09-02 12:19
Lotsofquestionslikethisexplainhowtoprogrammaticallycreateamaskandprovideroundedcorner
Lots of questions like this explain how to programmatically create a mask and provide rounded corners to a UIView.
像这样的许多问题解释了如何以编程的方式创建一个掩码,并为UIView提供圆角。
Is there a way to do it all within Storyboard? Just asking because it seems like creating rounded corners in Storyboard keeps a clearer demarcation between presentation and logic.
是否有一种方法可以在故事板中完成?仅仅是询问,因为在故事板中创建圆角似乎可以在表示和逻辑之间进行更清晰的划分。
3 个解决方案