title: Pass Data Between Two Unrelated ViewControllers
body: <p>I was given a challenge to pass data back and forth between two (or many) unrelated (by segue) view controllers.<br>
  There are three view controllers, <code>ViewController A</code> - <code>ViewController B</code> and <code>ViewController C</code>.<br>
  <code>ViewController A</code> segues to <code>ViewController B</code> and <code>ViewController B</code> segues to <code>ViewController C</code>.<br> I want to share data (such as text on a textfield) between <code>ViewController A</code> and <code>ViewController C</code> back and forth</p>
  
  <p>Upon investigation I found four possible ways to achieve it :-</p>
  
  <ol>
  <li>Delegation.</li>
  <li>Creating a class with <code>static</code> member, to store the data contained in textfield.</li>
  <li>Using <code>NSUserDefaults</code></li>
  <li>Using global variables</li>
  </ol>
  
  <p>What would be the most logical way of achieving this? I would like to use one with least overhead.
  Thanks!</p>