"dismissModalViewControllerAnimated" is replaced with "dismissViewControllerAnimated:completion:".

"dismissModalViewControllerAnimated:" is deprecated in iOS6.