How to add "info" button to the left of an existing right bar button?
Currently I have a nav bar with an "edit" button far left, a "+" button far right with the title in the middle.
How do I place an "info" button just to the left of the "+" button?
I think I have a handle creating the button just not placing it.
To create the button I've got:
UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
[infoButton addTarget:self action:@selector(infoButtonAction) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:infoButton];
[self.navigationItem setLeftBarButtonItem:modalButton animated:YES];
[modalButton release];
The above code was found in this forum.
Thanks!
|