近来,我收到了QA民间人士的一篇论文,其中说,在Pi3上,所开发的 app光方向是不正确的,而能够在Si4上正确显示。 他们说,“SOS”3,“光线”的取向是“孔隙”的。 然而,他们声称,第4号指示是正确的。
我用我的3GS(SOS4)测试他们的要求。 我的用词总是正确。 它很奇怪,因为:
- The app has been developed before the release of iOS4, and the codes for rotation is left intact. This implies that the rotation works correctly for iOS3 in the past.
- I run my app using base 3.2.3 version, and I could not produce what the QA is claiming. This applies to both the simulator (tested on both iOS 3.2.3 and 4) and the actual device. (which uses iOS4)
- The rotation works since iOS3, and it also works on iOS4 on my iPhone.
这是一个非常奇怪的情况,没有能够复制QA声称的ug。 因此,在这种情况下,我需要一些建议,你是否可以列出所有指导方法? 当然,这是过份的,但不能重复他们的要求,我确实需要一种办法,迫使人们总是把方向推向景观。
因此,我放弃如下:
- edit the plist for initial interface orientation for landscape orientation.
- application setStatusBarOrientation method. Possibly do this in the viewWillAppear method of the ViewController.
- in the method: shouldAutoRotateToInterfaceOrientation, set the desired orientation only.
任何帮助都得到真正的赞赏。