Xcode 5 Round Rect Buttons

后端 未结 7 503
借酒劲吻你
借酒劲吻你 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条回答
  •  一向
    一向 (楼主)
    2021-01-30 07:23

    In Swift 3: we can added it viewdidload

      button.layer.cornerRadius = 0.5*button.bounds.size.width
      button.clipsToBounds = true
    

提交回复
热议问题