Fix orientation changes on iOS 8.
Merge pull request #26 from nschum/orientation_fix_ios8

Fix orientation changes on iOS 8.