title: wait after presentModalViewController
body: <p>I need to wait (don't execute the code) after the presentModalViewController until the modal view it's dismissed, it's possible or it's a conceptual error ?</p>
  
  <pre><code>-(NSDictionary *)authRequired
  {
      //This view write the settings when dismissed (plist)
      [self presentModalViewController:loginRegView animated:YES]; 
      //Read from the setting file (plist) and send back (it's a delagate method)
      NSMutableDictionary *ret=[[NSMutableDictionary alloc] init];
      [ret setObject:[app.settings get:@"user"] forKey:@"user"];
      [ret setObject:[app.settings get:@"pass"] forKey:@"pass"];
      return ret;
  }
  </code></pre>