Change Orientation for iOS is not working on 1.4.14

This code

((AppiumDriver) driver).rotate(ScreenOrientation.LANDSCAPE);

is not changing the orientation for iOS on Appium 1.4.14 ( GUI App is 1.4.13)