我在用
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(detectOrientation) name:@"UIDeviceOrientationDidChangeNotification" object:nil];
对我的 appdelegate 中的某些视图进行更改。
但这会在加速度计的最轻微变化中被调用。任何人都可以提出任何解决方法,以便仅在设备完全旋转时才调用它。谢谢