Made the shouldRotate property apply to iOS6.