1

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

4

1 回答 1

2

Figured it out

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

(This is placed in a UITabBarItem subclass)

于 2013-06-14T01:48:35.483 回答