UINavigationItem setLeftBarButtonItems animated
- (void)setLeftBarButtonItems:(NSArray *)items animated:(BOOL)animated
Parameters of [UINavigationItem setLeftBarButtonItems animated]
items
An array of custom bar button items to display on the left side of the navigation bar.
animated
Specify YES to animate the transition to the custom bar items when this item is the top item. Specify NO to set the items immediately without animating the change.
Discussion of [UINavigationItem setLeftBarButtonItems animated]
If two navigation items have the same custom left or right bar button items, those bar button items remain stationary during the transition when the navigation item is pushed or popped.
UINavigationItem setLeftBarButtonItems animated example.
Assuming iOS 5 onwards add your custom buttons:
[self.navigationItem setLeftBarButtonItems:[NSArray arrayWithObjects: customBarItem, customBarItemSetting, nil] animated:NO];
[self.navigationItem setLeftBarButtonItems:[NSArray arrayWithObjects: customBarItem, customBarItemSetting, nil] animated:NO];