Custom iPhone Tab Bar Changes Tabs to Landscape

I am making a tab bar application, and I want the bottom to not only have a custom bar, but also the ability to change buttons if the user is in portrait or landscape mode.

For example, the user holds the iphone vertically = 3 tabs (a, b, c), but the user flips the phone to the side, and the tab bar is now filled with two tabs (d, e), which are aligned up / down on the left side of the screen so that the user can to read.

I have studied the subclassification of the UITabBarController class, but I feel that I do not want to do this. I want to know...

1) How can I do this?

2) does my own tab bar cause problems when I click an app in the App Store?

+5
source share
2 answers

I think that the implementation of what you are describing should not be a problem in the app store, unless your implementation is confused and does not “break” the standard behavior on the tab. In other words, if it looks like or looks like a standard Apple control, it should function in a very similar way and not act “broken” for a user who is familiar with tabs. Apple really gives you freedom of action and creativity with user interface controls if you are a little careful not to confuse or annoy the user.

, UITabBarController , . , Apple UIViewController, , , , UITabBarController ( Apple UITabBarController).

CustomTabBarController ( ) UIViewControllers, . CustomTabBarController UIViewController - , , viewDidAppear ..

UIViewController . :

http://mattgemmell.com/2010/07/31/mgsplitviewcontroller-for-ipad

+1

! , , . - c 6mo. . , , , , , - :

http://idevrecipes.com/2010/12/17/twitter-app-tab-bar-animation/

, . , , , , . , View Controller, , , iphone. - / .

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil];

, , 90 , , , 4 .

. , .

0

All Articles