views:

312

answers:

2

Ok, so I've successfully added a rightBarButtonItem to call a custom selector (called from a UIViewController), as follows:

 UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];

 [infoButton addTarget:self action:@selector(showInfoView:) forControlEvents:UIControlEventTouchUpInside];

 self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:infoButton];

Is it possible to make the "right bar button item" actually be several distinct buttons (and thus remove the title text from the navigation bar)?

I'm searching for ways to get more screen real estate, and this seems like a logical choice... although any other suggestions would be appreciated (maybe i should reduce the size of the tab bar i use at the bottom...)

A: 

Well, you could use a UISegmentedControl with the bar style. Or you could add a generic UIView and add whatever buttons you want.

Ed Marty