title: How does clipsToBounds work?
body: <p>I would like to know how to use the <code>UIView</code> property <code>clipsToBounds</code>.</p>
  
  <p>The official documentation says the following:</p>
  
  <blockquote>
    <p><code>clipsToBounds</code> <em>property</em></p>
    
    <p>A Boolean value that determines whether subviews are confined to the
    bounds of the view.</p>
    
    <p><strong>Discussion</strong><br/>
    Setting this value to <code>YES</code> causes subviews to be clipped to the
    bounds of the receiver. If set to <code>NO</code>, subviews whose frames extend
    beyond the visible bounds of the receiver are not clipped. The default
    value is <code>NO</code>.</p>
  </blockquote>
  
  <p>But I'm unclear on what this means exactly.  How should I be using <code>clipsToBounds</code>?  What are the consequences of setting this property to <code>YES</code> exactly? Or to <code>NO</code>?</p>