Fix for iOS 8.0 Landscape issue.

Replacing compile time directives with runtime check.