• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Supporting different orientations with UITabBarView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Supporting different orientations with UITabBarView?


  • Subject: Re: Supporting different orientations with UITabBarView?
  • From: Laurent Daudelin <email@hidden>
  • Date: Sat, 17 Apr 2010 15:56:58 -0700

Well, I thought about this and checked my xib. I then realized that the default TabBarController was a UITabBarController. The documentation says that, by default, controllers will only return YES from shouldAutorotateToInterfaceOrientation when the orientation is portrait. So, I did subclass the TabBarController and in my subclass, I do return YES from shouldAutorotateToInterfaceOrientation. I know that my other 2 UITableViewController instances return YES to the same method so I'm not sure where to look for the broken link.

When I look at my xib file, I see that the TabBarController has a TabBar but I don't think I need to subclass this one as it is a view, not a controller. The 2 view controlled by the TabBarController are my subclasses of UITableViewController and they both implement shouldAutorotateToInterfaceOrientation and return YES, so I'm puzzled why it doesn't work.

I'm still missing something it seems...

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

On Apr 17, 2010, at 11:58, Luke the Hiesterman wrote:

> Each respective's tab's viewController must return YES from shouldAutorotateToInterfaceOrientation for the tabBarController to autorotate, not just the currently visible one.
>
> Luke
>
> On Apr 17, 2010, at 11:48 AM, Laurent Daudelin wrote:
>
>> Not sure what I'm missing here but obviously, I'm missing something. If I create a project based on a navigation controller and override 'shouldAutorotateToInterfaceOrientation:' to return YES all the time, when the device is rotated, the tableview correctly rotates and resizes itself.
>>
>> However, if I have tab view based app, nothing happens. The tab view has 2 views which are both based on navigation views.
>>
>> What am I missing?
>>
>> -Laurent.

_______________________________________________

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

  • Follow-Ups:
    • Re: Supporting different orientations with UITabBarView?
      • From: Luke Hiesterman <email@hidden>
References: 
 >Supporting different orientations with UITabBarView? (From: Laurent Daudelin <email@hidden>)
 >Re: Supporting different orientations with UITabBarView? (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Baffling Button Behavior
  • Next by Date: Re: Zeroing out instance variables
  • Previous by thread: Re: Supporting different orientations with UITabBarView?
  • Next by thread: Re: Supporting different orientations with UITabBarView?
  • Index(es):
    • Date
    • Thread