Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amalshah71

macrumors member
Original poster
Feb 1, 2009
51
0
Hello,
All the posts i could find regarding this is related to TabBar controller based App.

All posts talk about overriding shouldAutorotateToInterfaceOrientation:

Though in the following case it won't apply

Scenario :

i have 2 components , one a UIScrollView and 2nd a UITabBar

After initing these 2 components i add it to UIWindow

I set a notification to listen for Orientation changes...

Say for eg: a LandscapeRight orientation happens...

i set bounds for UIScrollView component to set it to landscapemode...

But how about UITabBar component...

How do i make it to display in landscape mode

Thanks

amal
 
For my, as yet unreleased update, to DLR Times I created a subclass of UITabViewController called RotatingTabViewController in which I override shouldAutorotateToInterfaceOrientation: to return YES for all orientations and nothing else. I then changed my tab view controller to an instance of my new subclass and it all worked perfectly.
 
For my, as yet unreleased update, to DLR Times I created a subclass of UITabViewController called RotatingTabViewController in which I override shouldAutorotateToInterfaceOrientation: to return YES for all orientations and nothing else. I then changed my tab view controller to an instance of my new subclass and it all worked perfectly.

to use shouldAutorotateToInterfaceOrientation: i have to use a viewcontroller...for getting rotation is using a viewcontroller the only way out

is there any other way for tab bar component to listen for orientation changes...

amal
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.