How to make an overlay with round edges (iPhone SDK)?

后端 未结 2 1625
北恋
北恋 2021-02-11 10:20

I\'ve just received a lot of good responses to the question about making overlay views. Is there a way that I can make an overlay view on the iPhone SDK?

Another question

2条回答
  •  無奈伤痛
    2021-02-11 10:22

    Use the view.layer's cornerRadius property.

    #include 
    

    ...

    overlayView.layer.cornerRadius = 5.0;
    

提交回复
热议问题