Mic*_*all 13 iphone rotation uiviewcontroller uiview
我YES在视图控制器的shouldAutorotateToInterfaceOrientation函数YES中返回,我可以看到正在返回的断点,但是willRotateToInterfaceOrientation没有调用该方法,也没有任何其他旋转方法.好像回来后YES没有任何事情发生!
有任何想法吗?
麦克风
Der*_*ius 18
我有一个类似的问题,看到丹尼尔的答案,但我在开发人员文档中找不到任何确认.并不是说我不相信答案,但我真的不明白为什么定向调用不会传播.
有人给了我一个使用这样的东西的技巧:
[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(detectOrientation) name:@"UIDeviceOrientationDidChangeNotification" object:nil];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17622 次 |
| 最近记录: |