我在导航控制器中添加了两个按钮,一个是右键和左键,我想在右键之前添加第三个按钮。怎么做?
UIButton *logo_btn = [UIButton buttonWithType:UIButtonTypeCustom];
[logo_btn setBackgroundImage:[UIImage imageNamed:@"logo-57.png"] forState:UIControlStateNormal];
[logo_btn setFrame:CGRectMake(-2, 0, 47, 47)];
UIBarButtonItem *btnItem1 = [[UIBarButtonItem alloc] initWithCustomView:logo_btn];
self.navigationItem.leftBarButtonItem = btnItem1;
这就是我在左侧添加一个按钮的方式。