title: dismissmodalviewcontrolleranimated is deprecated first deprecated in ios 6
body: <p>I have just updated iOS 6, and run my old code, which is created in iOS 4.3. They give me number of warnings in my application.</p>
  
  <p>I used <code>presentModelViewController:</code> and then I dismiss it, but it gave me warning</p>
  
  <blockquote>
    <p>dismissModalViewControllerAnimated is deprecated first deprecated in iOS 6.</p>
  </blockquote>
  
  <p>Why they show warning to that code? Here is the code:</p>
  
  <pre><code>[picker dismissModalViewControllerAnimated:YES];
  </code></pre>
  
  <p>This line gets yellow and show the error. Please give me guideline to remove the warning.</p>