call use the follow method to do .
Observe
UIDeviceOrientationDidChangeNotification
:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil]; ... - (void)orientationDidChange:(NSNotification *)note { NSLog(@"new orientation = %d", [[UIDevice currentDevice] orientation]); }
willRotateToInterfaceOrientation not called
最新推荐文章于 2021-09-06 10:09:58 发布