Well in the viewcontrollers I'm using the  - 
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
 and returning yes when the orientation is: UIInterfaceOrientationLandscapeLeft 
for the editor and YES when it's portrait in the mail composer.

I am not using device notifications at all, I just added the generate 
notifications call thinking maybe it was not correctly generating the 
notification for the above method. But if I load the mail composer view 
controller first the device just sticks in portrait even if you rotate it and 
try again.

I have to manually rotate the interface because the editor requires a large 
area to work in. It has to be in landscape. That is why I manually rotate the 
interface. If there is a better way to make sure that the editor always loads 
in landscape I'd be happy to use it as right now my only option is to force the 
editor to load at app launch thus making sure that no matter what I do the 
orientation is always correct.



On Apr 7, 2010, at 11:22 AM, David Duncan wrote:

> How are you checking and working with orientations?
> 
> If your using the View Controller orientation notifications, then this should 
> just work (if your doing everything correctly). If your using UIDevice 
> orientation notifications (which it sounds like since you have to move the 
> status bar manually) then that would explain why this isn't doing the right 
> thing.
> 
> On Apr 7, 2010, at 10:07 AM, Development wrote:
> 
>> Ok I'm going to try to explain this...
>> 
>> I have an application with two different view controllers. One view 
>> controller handles a compose mail UI. The built in message frame work one. 
>> That is usually allowed to reorient to any device orientation but will 
>> usually be used only in portrait. 
>> 
>> The second(an editor) is manually set to landscape left. 
>> 
>> Now, if I load the editor that has to be manually set to landscape first 
>> then the whole interface works perfectly. However if I load the mail 
>> composer first, which will reorient to any orientation it messes the editor 
>> up.
>> 
>> Basically after loading the mail composer and dismissing it, if I go to the 
>> editor it only checks the last known interface orientation which is usually 
>> portrait (It still doesn't work if the last one was landscape). This is even 
>> though I am manually reorienting the status bar and the device is in fact 
>> being turned to landscape left.  And turning the device does not cause it to 
>> recheck the orientation in the shouldautorotate method.
>> 
>> The device only shows that it is still in portrait even though the status 
>> bar shows that it is correctly oriented. 
>> So basically I have no idea how to correct this since even if I manually 
>> rotate the UIView that I am displaying it does not display correctly. Am I 
>> doing something wrong or am I up against a bug? BTW this works just fine on 
>> iPhone just not on iPad
> 
> --
> David Duncan
> Apple DTS Animation and Printing
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to