How can I remove a UIView with rounded corners from its parent view?

后端 未结 3 1316
不知归路
不知归路 2021-01-24 20:51

I\'m creating an iPad app for 3.2 and later. My app has an overlay view which has a semi-transparency that makes everything below it darker. In the middle of this view I am chop

3条回答
  •  感情败类
    2021-01-24 21:39

    If you change the cornerRadius property of a layer, you must also set clipsToBounds to YES on the associated view in order for the content to be clipped to the rounded corners.

提交回复
热议问题