最佳答案
I would like to know how to use the UIView property clipsToBounds.
The official documentation says the following:
clipsToBoundspropertyA Boolean value that determines whether subviews are confined to the bounds of the view.
Discussion
Setting this value toYEScauses subviews to be clipped to the bounds of the receiver. If set toNO, subviews whose frames extend beyond the visible bounds of the receiver are not clipped. The default value isNO.
But I'm unclear on what this means exactly. How should I be using clipsToBounds? What are the consequences of setting this property to YES exactly? Or to NO?