-1
NSArray *ary=[[NSArray alloc]initWithObjects:bar_back_1,bar_btn,bar_btn1,nil];
// UIImage *img_whiteleftbtn=[UIImage imageNamed:@"img_arrow_white"];
// UIBarButtonItem *bar_leftbtn=[[UIBarButtonItem alloc]initWithImage:[img_whiteleftbtn imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:self action:nil];
// self.navigationItem.leftBarButtonItem=bar_leftbtn;
self.navigationItem.rightBarButtonItems=ary;
在iphone4中,我們要在右側設置三個導航項.....如何可能?如何減少導航欄項目之間的空間?
I'm experiencing excessive UIBarButtonItem padding/spacing when using the LeftBarItems and RightBarItems (see image below). The icons used on the UIBarButtonItems do not contain extra padding. So I would like to know what's causing this?
的可能的複製[如何調整rightBarButtonItems 2的UIBarButtonItem之間的空間(http://stackoverflow.com/questions/22741824 /如何調整空間之間的兩個按鈕右上角按鈕項) – ToolmakerSteve 2017-03-18 01:19:22
http://stackoverflow.com/questions/22741824/how-to-adjust-space-between-two- uibarbuttonitem-in-rightbarbuttonitems,已接受答案,2015年7月更新。 – ToolmakerSteve 2017-03-18 01:19:52