Re: Supporting different orientations with UITabBarView?
Re: Supporting different orientations with UITabBarView?
- Subject: Re: Supporting different orientations with UITabBarView?
- From: Luke Hiesterman <email@hidden>
- Date: Sat, 17 Apr 2010 20:19:09 -0700
You should post some sample code of the tabBarController not autorotating. The behavior of the tabBarcontroller should definitely be to rotate if all of it's child viewViewControllers support rotation to the given orientation.
Luke
Sent from my iPad
On Apr 17, 2010, at 3:56 PM, Laurent Daudelin <email@hidden> wrote:
> 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