Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

How to disable rotation in a UISplitViewController?

Esko2300Esko2300 Posts: 501Registered Users
Im having a tough time figuring this one out. I've followed all the basic steps to have my presentation on work in landscape mode. In my apps info.plist file all i have as supported interface orientations are LandscapeLeft and LandScapeRight. In each one of my view controllers i have the method shouldAutorotateToInterfaceOrientation only returning UIINterfaceOrientationsLandScapeLeft and UIInterfaceOrientationLandscapeRight. But for some reason i can still rotate the application. Anyone have any ideas as to why this is happening?
Post edited by Esko2300 on

Replies

  • McCaffersMcCaffers Posts: 48Registered Users
    Esko2300;441414 said:
    Im having a tough time figuring this one out. I've followed all the basic steps to have my presentation on work in landscape mode. In my apps info.plist file all i have as supported interface orientations are LandscapeLeft and LandScapeRight. In each one of my view controllers i have the method shouldAutorotateToInterfaceOrientation only returning UIINterfaceOrientationsLandScapeLeft and UIInterfaceOrientationLandscapeRight. But for some reason i can still rotate the application. Anyone have any ideas as to why this is happening?
    Definitely have the follow code in your UISplitViewController?
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
    interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    }
  • Esko2300Esko2300 Posts: 501Registered Users
    There is no UISplitViewController. I created a New project in Xcode 4.3.2 called MasterDetailApplication. I searched throughout the whole project there is no code for it and also there is no object for it in any of the xib files. The last time i created oone of these was about 2 years ago and when i created a master detail application it was created with xib files automatically
  • Esko2300Esko2300 Posts: 501Registered Users
    Actually that worked fine my old code was (UIINterfaceOrientationLandscapeLeft | UIINterfaceOrientationLandscapeRight); i thought that should work but evidently not. So thank you once again for your help
Sign In or Register to comment.