Can we have UITabBar at the top of view?

Can we shift the UITabBar at the top of view? I am developing an app, where we need tab bar at top of view, can we do that? DO Apple allow this? Will my app will be approved on app-store?

Replies

Apple's documentation states :


The tab bar interface displays tabs at the bottom of the window for selecting between the different modes and for displaying the views for that mode. This class is generally used as-is, but may also be subclassed.


So sounds it is not possible to put it at top. However, go to IB, create the tabBar and place it at the top of the view. Seems to work.


But thgis does not comply with UI guidelines, so you should probably avoid for the comfort of your users and possible side effects

As noted, Apple expects users to be accustomed to tabbar on bottom.


See the iOS Human Interface Guidelines, but I think at the top you would use a nav bar / segmented control: https://developer.apple.com/ios/human-interface-guidelines/ui-controls/segmented-controls/


See https://developer.apple.com/ios/human-interface-guidelines/ui-bars/navigation-bars/