fix-iOS8-orientation-handling

fix-iOS8-orientation-handling when compile with SDK earlier than IOS8