title: NSUserdefaults not working on iPhone 6
body: <p>Here's my problem. In my app I have a tutorial screen and that's controlled by NSUserDefaults, specifically, this line of code</p>
  
  <pre><code>let userDefaults = NSUserDefaults.standardUserDefaults()
  let hasSeenIntro = userDefaults.boolForKey("hasSeenIntro")
  if !hasSeenIntro {
      showIntro()
  }
  </code></pre>
  
  <p>This worked perfectly fine until recently. On the iPhone 6 simulator as well as my physical iPhone 6, the tutorial keeps popping up at every app launch. This does not happen on the iPhone 6 plus, iPhone 5 or 4s simulations. </p>
  
  <p>Is there an alternative? I'm at a loss as to why this would only now happen on the iPhone 6 and no other devices. </p>
  
  <p>Below is the showIntro() code. The above code is placed in viewdidload.</p>
  
  <pre><code>func showIntro() {
  
  
      let storyboard = UIStoryboard(name: "Intro", bundle: nil)
  
      let introViewController = storyboard.instantiateInitialViewController() as! BWWalkthroughViewController
  
      let page1 = storyboard.instantiateViewControllerWithIdentifier("page1") as! UIViewController
      introViewController.addViewController(page1)
  
      let page2 = storyboard.instantiateViewControllerWithIdentifier("page2") as! UIViewController
      introViewController.addViewController(page2)
  
      let page3 = storyboard.instantiateViewControllerWithIdentifier("page3") as! UIViewController
      introViewController.addViewController(page3)
  
      let page4 = storyboard.instantiateViewControllerWithIdentifier("page4") as! UIViewController
      introViewController.addViewController(page4)
  
      let page7 = storyboard.instantiateViewControllerWithIdentifier("page7") as! UIViewController
      introViewController.addViewController(page7)
  
      let page5 = storyboard.instantiateViewControllerWithIdentifier("page5") as! UIViewController
      introViewController.addViewController(page5)
  
      introViewController.delegate = self
      self.presentViewController(introViewController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vShmi.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vShmi.gif" alt="enter image description here"></a></p>