title: Size a UIToolbar to fit its items?
body: <p>I'm trying to figure out a clean way to make a <code>UIToolbar</code> only as wide as it needs to be to fit the items that it contains. Is there a way to either:</p>
  
  <ul>
  <li>Configure the <code>UIToolbar</code> to adjust its width automatically as its items are changed?</li>
  <li>Programatically determine the minimum width required by the items, which can then be used to set the <code>UIToolbar</code>'s frame?</li>
  </ul>
  
  <p>I haven't been able to figure this out due to the spacing between the items and the fact that <code>UIBarButtonItem</code>s are not <code>UIView</code> subclasses.</p>