title: Can a presented view controller also be a presenting view controller?
body: <p>On top of an existing view I want to:
  a) display a screen to the user
  b) then send an SMS
  c) display another screen to the user.</p>
  
  <p>For a) I am doing this:</p>
  
  <pre><code>[[UIApplication sharedApplication].delegate.window.rootViewController presentViewController: firstController animated: NO completion:nil];
  </code></pre>
  
  <p>and for b) I am doing the same thing, except this is presenting a different vc of course, a  MFMessageComposeViewController.</p>
  
  <p>However in order for b) to appear I first have to dismiss the first view controller using:</p>
  
  <pre><code>   [[UIApplication sharedApplication].delegate.window.rootViewController dismissViewControllerAnimated:NO completion: nil];
  </code></pre>
  
  <p>That works so far, I can see the first view appear then see the SMS compose view appear. 
  When the SMS is sent I am doing this to dismiss the SMS compose view</p>
  
  <pre><code>   [[UIApplication sharedApplication].delegate.window.rootViewController dismissViewControllerAnimated:NO completion: nil];
  </code></pre>
  
  <p>But then nothing happens when I try to present another screen to the user using presentViewController. I can't see any reason why this should be, is there something I'm not aware of?</p>
  
  <p>Actually the screen before the SMS view and after it are the same except they have different text, so the easiest sequence of steps would be:</p>
  
  <p>a) present the view controller with text "abc"
  b) present the SMS controller
  c) when the SMS is sent dismiss the SMS controller
  d) update the text in the first view controller using an IBOutlet
  e) dismiss the first view controller.</p>
  
  <p>However as mentioned earlier on, if I don't dismiss the first view controller the SMS controller will not appear. So my main question is how can I present the SMS controller on top of the first view controller? </p>