Re: pls explain rotated iPhone coordinates to me
Re: pls explain rotated iPhone coordinates to me
- Subject: Re: pls explain rotated iPhone coordinates to me
- From: Matt Neuburg <email@hidden>
- Date: Wed, 16 Dec 2009 09:28:16 -0800
- Thread-topic: pls explain rotated iPhone coordinates to me
On or about 12/15/09 6:35 PM, thus spake "Luke the Hiesterman"
<email@hidden>:
> It looks like this is a quirk of the transform not updating in time
> when launching in landscape mode. Feel free to file a bug.
Thanks so much! I think it's really a docs bug. Again I refer to this page:
<http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/i
PhoneOSProgrammingGuide/ApplicationEnvironment/ApplicationEnvironment.html#/
/apple_ref/doc/uid/TP40007072-CH7-SW18>
The docs explicitly state that the three bullet points are *all* you need to
do. That's false. If the docs would add a warning to this effect, "Don't use
viewDidLoad on a view that rotates as it loads, because it's called before
the rotation occurs", that would have solved my issue. By postponing all
initialization until after the didRotate... call comes in, I'm now able to
use width as width and height as height! :) m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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