Xcode 5 Round Rect Buttons

2019-03-08 00:12发布

I have an app that incorporates many round rect buttons. However, in xcode 5, those dont exist. How do I get the round rect buttons back? They are essential to my app. Now it just is pressable text. What do I do? I am planning on releasing this app later, if that is relevant.

7条回答
地球回转人心会变
2楼-- · 2019-03-08 01:08

Same can achieved by programmatically.where myView is IBOutlet object.

myView.layer.cornerRadius = 5;
myView.layer.masksToBounds = YES;
查看更多
登录 后发表回答