Search code examples
iosuitabbar

How to move UITabBar button down


I have a custom tab bar and each buttonitem is a custom button. However the top is at the very edge. Is there anyway I can push this down?

enter image description here


Solution

  • Figured it out

    [self setImageInsets:UIEdgeInsetsMake(6, 0, -6, 0)];
    

    (This is placed in a UITabBarItem subclass)