add new func to configure the rotation on iphone