Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove gap between buttons in navigation item rightbuttonitems

I'm using self.navigationItem.rightBarButtonItems to setup my navigation bar items. However, for the bar buttons, i'm using a custom view(button). I observe there is spacing between buttons. How can I remove this?

like image 281
Dunes Buggy Avatar asked Jul 04 '13 16:07

Dunes Buggy


2 Answers

i know its too late, but i solved it using following method of UIBarButtonItem use

[barbuttonitem setImageInsets:UIEdgeInsetsMake(0, -30, 0, -70)];
like image 66
india Avatar answered Sep 27 '22 17:09

india


I solved this by using storybord interface.I know you are using custom Bar,but this answer will useful for those who use stroybord.

1.Select the Bar item.

2.Select the Size Inspector.

Here you can find image Inset,using top,bottom AND left , right you can change the position of Bar Item.

like image 36
jithin Avatar answered Sep 27 '22 17:09

jithin