Re: shouldAutorotateToInterfaceOrientation not being called ...
Re: shouldAutorotateToInterfaceOrientation not being called ...
- Subject: Re: shouldAutorotateToInterfaceOrientation not being called ...
- From: Roland King <email@hidden>
- Date: Sun, 25 Jul 2010 18:01:40 +0800
First off - post that piece of code, cut and paste it right out of the app just incase you went and misspelled it, unlikely but, if you post it here we can eliminate that possibility.
Second - type 'QA1688' into the documentation browser and read that technote, that gives several reasons that views might not autorotate, there are some quite creative ones there like not retaining a view controller properly or not calling [ super init... ];
and lastly yes there is a property, it's discussed in QA1588, make sure that UISupportedInterfaceOrientations and UIInterfaceOrientation in your Info.plist file are suitably set; although I've messed with that key before (and just did again to check) and my app rotated anyway so I really don't actually know if it works!
On 25-Jul-2010, at 4:35 PM, Jay Reynolds Freeman wrote:
> I posted about this in the CocoaTouch developer forum, with no
> response. I am bringing my problem here in the forlorn, last hope
> that someone who reads this newsgroup but not that forum knows
> something that will assist me.
>
> I am developing an iPad app under Xcode/IB/iPhone-simulator
> 3.2.2. (I have had enough bugs with later versions of the
> software to have had to deinstall them.) This version is
> available to all developers, so I presume I can discuss it
> here.
>
> My app has one view controller, and in it, the method
> "shouldAutorotateToInterfaceOrientation" exists, is being compiled,
> (I temporarily put a syntax error in it to make sure), and
> returns an unqualified "YES".
>
> However, that method is not being called -- I added an NSLog
> statement in it, and see no output. The app does come up in
> the simulator and starts to run, in portrait mode with the
> button at the bottom. However, when I rotate the simulator,
> the app rotates with it as the simulated iPad turns,
> exactly as you would expect of an app locked in portrait
> mode with the button at the bottom. The rotating part includes
> not just my own view, but also the top bar with time, battery
> charge, and WiFi state in it.
>
> I am not sure what questions to ask, but (1) is there something
> I am missing in the Xcode project settings that would cause the
> OS to think my app is restricted to that orientation, and (2)
> what exactly is it that calls this method in the first place,
> and what object is it that receives the method. (I can probably
> chase down a problem with delegates or the responder chain if
> I know where to start.)
>
> There is a lot of stuff on the web and in archives dealing with
> problems with this method, but nothing that seems relevant to
> my particular problem.
>
> Thanks.
>
> -- Jay Reynolds Freeman
> ---------------------
> email@hidden
> http://web.mac.com/jay_reynolds_freeman (personal web site)
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden