fixed ios7 warnings for dismissModalViewControllerAnimated and presentModalViewController

Fixed warnings for iOS6 modal view controllers.

![screen shot 2013-12-26 at 3 47 02 pm](https://f.cloud.github.com/assets/251087/1812351/896990e8-6e77-11e3-85b6-613e2eab40c6.png)