Hi.
I got the following:
@interface A : UIViewController {
}
@property (nonatomic, assign) UIToolbar *toolBar;
@end
Here the 'toolBar' property can be set from outside to point to a externally created UIToolbar OR it can point to the navigationController tool bar.
I want to set the tool bar items independent of witch tool bar 'toolBar' point's to. I try the following without success:
NSMutableArray *buttons = ...
...
UIBarButtonItem *item = ...
[buttons addObject:item];
...
//I know this are the same but...
[self.toolBar setItems:buttons];
self.toolBar.items = buttons;
Any idea?