title: Passing data through AppDelegate in ios
body: <p>In more than one occasion i found usefull to pass data from one viewController to another using AppDelegate as bridge: </p>
  
  <pre><code>@interface MyAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
      CGFloat aFloatValue;
  }
  </code></pre>
  
  <p>This way i can get "aFloatValue" from any controller with: </p>
  
  <pre><code> MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
  </code></pre>
  
  <p>and </p>
  
  <pre><code>appDelegate.aFloatValue
  </code></pre>
  
  <p>But i'm not sure this's a good method... what do you think about that ? </p>