fixed "dismissModalViewControllerAnimated is deprecated" warning when compiling the SDK with deployment target 6.0