On iOS 8 willRotateToInterfaceOrientation is deprecated. This leads to having buttons that are not clickable anymore when the screen rotates.

viewWillTransitionToSize (iOS 8) solves that.
Implementing the new viewWillTransitionToSize delegate method causes willRotateToInterfaceOrientation not being called. Therefore there is no need to check the version of iOS on willRotateToInterfaceOrientation
Merge pull request #29 from seviu/master

Fix for AlertView rotation in iOS 8 #28: Implementing viewWillTransitionToSize for iOS 8