Compatibility Fixes

Fixed a code typo, Fixed device rotation causing crashes on iOS 7 if
alert view is showing
Merge pull request #21 from FahimF/develop

Compatibility Fixes