Fixed an iOS 8 version check

Testing if UIApplication responds to registerForRemoteNotifications is a really ugly way to check if we're running on iOS 8, when the code has nothing to do with remote notifications.

Just get the minimum dimension since a status bar will always be wider than it is tall.
Merge pull request #190 from nicked/patch-1

Fixed an iOS 8 version check