title: iOS 11 - UserDefaults.standard string value nil
body: <p>Whilst trying to retrieve values stored in UserDefaults.standard, i'm currently finding that a string value set within the Root.plist is not being read as expected; it has a default value assigned to it from within the Xcode storyboard UI (e.g. <a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a>), but when it is read within the ViewController swift code it is nil.</p>
  
  <p>Within the ViewController's viewDidLoad(), I am calling </p>
  
  <pre><code>    UserDefaults.standard.register(defaults: [String : Any]())
  </code></pre>
  
  <p>Within the ViewController's viewWillAppear(), i then try to read the string value as follows:</p>
  
  <pre><code>    let userDefaults = UserDefaults.standard
      var defaultURL = userDefaults.string(forKey: "server_url") 
  </code></pre>
  
  <p>But defaultURL is nil. Not entirely sure what is going on here! Can anyone advise? </p>