fixed warning "dismissModalViewControllerAnimated is deprecated"

This warning is shown when compiling the SDK with deployment target 6.0.

This happens for example if you use cocoapods and set "platform :ios, '6.0'" in your Podfile.