'dismissModalViewControllerAnimated:' is deprecated:

'dismissModalViewControllerAnimated:' is deprecated:
first deprecated in iOS 6.0