iOS Question Change tabbar height

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use this code to change the height:

B4X:
Sub SetTabBarHeight(tbc As TabBarController, Height As Float)
   Dim no As NativeObject = Me
   no.RunMethod("setTabBarHeight::", Array(tbc, Height))
End Sub

#if OBJC
- (void)setTabBarHeight:(UITabBarController*)tbc :(float)height {
   CGRect tabFrame = tbc.tabBar.frame;
  tabFrame.size.height = height;
  tabFrame.origin.y = tbc.view.frame.size.height - height;
  tbc.tabBar.frame = tabFrame;
}
#end if

Based on this answer: http://stackoverflow.com/questions/24397189/changing-the-height-of-uitabbar-in-ios7-8
 
Upvote 0
Top