fix detection device orientation on iOS