fix-iOS8-orientation-handling

fix-iOS8-orientation-handling when compile with SDK earlier than IOS8
Merge pull request #23 from sunchongyang/master

fix-iOS8-orientation-handling