Xcode 5 Round Rect Buttons

后端 未结 7 521
借酒劲吻你
借酒劲吻你 2021-01-30 06:56

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 ju

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 07:18

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

    myView.layer.cornerRadius = 5;
    myView.layer.masksToBounds = YES;
    

提交回复
热议问题