title: What is the best way to develop applications using the auto layout in Xcode?
body: <p>So I guess this is going to be closed for being too subjective and too opinion based but if anyone can help me I would appreciate it.</p>
  
  <p>I got a question. If I have a few controllers that all have almost the same thing For example they have the same background, have a menu going around the edge but the actual content is different. I had a couple of ideas. 1) Just have one view controller and just kill the objects for that current view if the user chooses a different option on the menu and spawn the new objects for that menu. My issue with this way was that I could't find a way to use the auto layout with this.</p>
  
  <p>Second way would to be have a function in a .swift file that I can call and it creates an image view and sets up the menu an everything like that. I have the opposite issue here though, now the auto layout won't work.</p>
  
  <p>App devs must have a way of doing this, I'm just probably thinking of this completely the wrong way.</p>
  
  <p>Is there a better way to be doing this - I am sure there is? I would appreciate it if someone could point me in the correct direction.</p>
  
  <p>Thanks</p>
  
  <p>EDIT:</p>
  
  <p>I should make it clear that the language I am using is swift.</p>