如下图,怎么获取这个竖向锁定的状态呢???
都说用[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientaionDidChange) name:UIDeviceOrientationDidChangeNotification object:[UIDevice currentDevice]];但是这个不是要手动旋转手机才会走回调嘛
图1
如下图,怎么获取这个竖向锁定的状态呢???
都说用[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientaionDidChange) name:UIDeviceOrientationDidChangeNotification object:[UIDevice currentDevice]];但是这个不是要手动旋转手机才会走回调嘛