iOS 8 Landscape Rotation Issue

Current implementation rotates the alert view incorrectly in iOS 8 when in landscape mode.
Same problem existed in SVProgressHUD.
Solution is taken from SVProgressHUD and works.
Solution is to check for iOS 8. In that case rotation is applied automagically.