update iOS device direction