How to get the height of the tabbar programmatically?

Solution 1:

I don't totally understand your P.S., but you can do:

tabBarController?.tabBar.frame.size.height

Solution 2:

If you want to get the standard height for the UITabBar control then you can do:

    UITabBarController *tabBarController = [UITabBarController new];
    CGFloat tabBarHeight = tabBarController.tabBar.frame.size.height;

Solution 3:

prettier

CGRectGetHeight(self.tabBarController.tabBar.frame)

Solution 4:

check this in your vc

bottomLayoutGuide.length