iphone - shouldAutorotateToInterfaceOrientation doesn't work on first launch after fresh app install -
The app I'm working on is either installed via iTunes via ad-hoc or The device is made directly on the device, for the first time on launch, the only view controller in my app that responds to orientation changes does not receive calls with a landscape argument on shouldAutorotateToInterfaceOrientation:
; Debugging shows that it is only being called for the picture as every subsequent projection I hope - ie, there are calling for shouldAutorotateToInterfaceOrientation:
for landscape and picture logic Together, this exact behavior can be seen in the iPhone simulator, on the iPhone and on the iPod Touch.
So my question is: Why will the orientation notifications for the first launch of the app be different because they will be for each subsequent launch? Do I believe that I have shouldAutorotateToInterfaceOrientation:
?
There is no control over the orientation changes beyond answering the question in the wrong:
Pre> - (BOOL) ShouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) Interface Orientation {return yes; } and viewDidLoad
and viewDidUnload
I have found (respectively):
[[UIDEView current device] is starting onDigestation OrientationNote] ;and
[[UIDEViews Current Division] Endogenating Device Authorization Notification];Update on July 6, 2010:
Still no luck is solving the problem. I left the issue for a while and it Came back and still seeing the problem completely under different circumstances. anyone?
Update July 13, 2010:
From the apple:
"... the window object with changing the current orientation Associated work. [...] In particular, it works with the visual controller whose root footage was most recently added to the window, or was presented. In other words, the window object is only visible in the front view controller Whose view was displayed ... "
I subsequently copied every projection At first I was adding the window's root view controller to the launch, so I thought maybe something like that with it. I do not even know anything yet ... just an idea.
At the time of this update, there are about 175 views ... no one is even far-fetched suggestive suggestions? Come on, throw some out. I'm ready to entertain any idea or suggestion at this point. I do not care whether this is stupid, unclear or potentially irrelevant.
This problem has not been solved - before the company I left I had a chance That I had to face it, though, when I left it, I was very good at that. I contacted Apple DTS about this issue and said that to work properly for autoretation, it was linked to autoretation Applying the View Stack to All View Controllers I do not remember how they are quoted in the RAN (i.e. [super viewDidLoad]
in ViewController's viewDidLoad
), but it is possible to make sure that you Calling the appropriate super
[edit] If someone can confirm this, I will mark it as an accepted answer. Thanks!
Comments
Post a Comment