title: Delay in presenting a modal view controller
body: <p>I have a tab bar based app. There are navigation controllers in all 5 tabs with instances of custom view controller setup properly as root view controllers. This loads just fine. A couple of these view controllers contain table views. I want to show a modal view controller to the user when they select a row in the table view. The (relevant part of) didSelectRowAtIndexPath delegate method looks as follows:</p>
  
  <pre><code>SampleSelectorViewController *sampleVC = [[SampleSelectorViewController alloc] init];
  [self presentViewController:sampleVC animated:YES completion:NULL];
  </code></pre>
  
  <p>The modal view controller appears BUT it appears after a very noticeable delay. At times it even requires the user to tap the row a second time. A few things that I have already verified are:</p>
  
  <ul>
  <li>Table view's didSelectRowAtIndexPath method is called when the user taps the row</li>
  <li>The didSelectRowAtIndexPath method does not contain any blocking calls. There are no network operations being performed and the modal view controller's setup does not involve any processing intensive task. The data it displays is static.</li>
  <li>If I push the new view controller onto the navigation stack (everything else remaining exactly same), it behaves perfectly without any delays. It is only when presented modally that the delay is encountered.</li>
  </ul>
  
  <p>Any ideas/suggestions?</p>