Search code examples
iosobjective-cuitabbarcontrolleruitabbar

adding Button on UITtabbar and My button must be higher than TabBar (Objective C)


I'm working on UITabBarController. And now i want to add Button in the middle of UITabBar. The problem is my button must be higher than TabBar. In other words half of my button is out of TabBar. Is it possible? if it is possible, how can i do that? Thanks.


Solution

  • You can cover the UITabBarController with a UIView that has buttons. Use the buttons to programmatically select the correct tab. make the UIView have a clear background and be the height of the tallest button on the bar.