Merge pull request #384 from graceful/ios7-warnings

Fix iOS 7 warnings for dismissModalViewControllerAnimated and presentModalViewController