View rotation methods

View rotation methods for iOS5 and iOS6