title: Best way to center some images using iOS autolayout
body: <p>I am doing this and I am curious whether it is the best way, or a dumb way!</p>
  
  <p>I have a bunch of 40 pixel wide images, each one is like a Scrabble tile. My app wants to display some and center them on the screen. Only it don't know how many there are going to be! Could be between 3 and 10.</p>
  
  <p>So I think best thing is if I count how many, multiple by 40, so I know how many pixels wide the whole thing will be, and then let's pretend it's 280 pixels - I will create a 280 px wide UIView, stick all the tiles in there, and then use Autolayout to center that UIView on the device.</p>
  
  <p>That way if user rotates device, no problem!</p>
  
  <p>Is this the best way? Also I am going to need to let the user drag the tiles out of that UIView and into another place on screen. Will that be possible?</p>