title: How to use UserDefaults registerDefaults()
body: <p>I have looked everywhere and cannot find an explanation of how to use <code>registerDefaults()</code>.</p>
  <p>Every post that asks about how to set defaults is answered by &quot;use <code>registerDefaults()</code>&quot;, the small problem I'm having with this is I have no clue how to use registerDefaults().</p>
  <p>Could someone show me exactly what code to write and where to put it?</p>
  <p>My problem: I have 5 values (Int) that need to have a specific default but can later be changed by the user. I have checked Xcode documentation, youtube and google, can't find an answer.</p>