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