title: Play background music in app?
body: <p>I want the user to be able to open the app and have music start playing. I want the user to be able to go any view controller and return back to the initial one without the music stopping. I want it to loop indefinitely. </p>
  
  <p>I have tried to put in the <code>viewDidLoad</code> method of the initial view controller for it to start playing. What happens is, the user leaves the initial view controller and when they come back, the music starts playing again, overlapping the original copy. </p>
  
  <p>To remedy this, I put an if statement checking if the sound is already to playing to not launch another copy and the viewDidLoad method completely ignores the if statement and plays it again anyways. I also tried using <code>viewDid/WillAppear</code>. I have tried putting the sound in the app delegate in the <code>applicationDidLaunchWithOptions</code> method and I got complete silence.</p>