English 中文(简体)
不应轮换地重复“外向”
原标题:shouldAutorotateToInterfaceOrientation called several times in a row without any rotation

我正试图根据装置轮换对我的器具进行一些接口改动。

我的看法是有根据的。 因此,其主要观点控制器有有效载荷方法。

服饰物。 装置定位方面的几乎所有变化都触发了“Autorotate TofaceOrientation”方法,但在从任何景象开始将这一装置放置在十字路口时,这种方法并不被称作。

在总结时,我已经做了一个发言。

NSLog(@"orientation=%d", interfaceOrientation);

我所看到的非常奇怪的是:

  • When I run the app, shouldAutorotateToInterfaceOrientation is called 6 times before the app s interface even appears. Every time it runs, it reports a different number for the orientation: the order it reports on console is: portrait, portrait, portrait, landscape right, landscape left, upside down) (????).

在此期间,情况刚刚开始。 夸张报道,所有6条电话都来自该代表。

因此,这里的问题是:

  1. WHy shouldAutorotateToInterfaceOrientation is not being called when the device enters on portrait?
  2. Why is the delegate calling this method 6 times before the app s is even visible, specially when no rotation is being done?

感谢。

最佳回答
问题回答

该系统正在收集这些答复,以便了解审判和检测的方向。





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签