title: iOS: showing/hiding UI elements dynamically
body: <p>I have an app with a UITableView of results in a center column, and a little search bar at the top. I want to dynamically add/remove a button that says "reset search" and pin it to the top of the view.</p>
  
  <p>There are a couple ways to go about it, and I'm worried that they both look ugly or hacky to me. To wit:</p>
  
  <ul>
  <li><p>Add the button in the storyboard editor, and show/hide it in code. The trouble is I've already got a bunch of views specified this way in the storyboard, and so positioning/selecting them is a huge pain since they overlap each other.</p></li>
  <li><p>Add the button in code. Except now my UI is specified in two places: the stuff that's in the storyboard, and the additional modifications that take place in the code.</p></li>
  </ul>
  
  <p>What's the standard way of doing something like this? And how can I prevent my storyboards from becoming a big mess when I've got buttons/dialogs/etc. that need to be dynamically shown/hidden?</p>