add autorotation support for iOS5

add autorotation for iOS5
improve pinch experience