I want to add the three button in the right side of navigation bar, i dont know how to add pls help me.
views:
44answers:
1
+1
A:
I think you mean this in your viewController code:
UIBarButtonItem threeButton = [[UIBarButtonItem alloc] initWithTitle:@"3" style:UIBarButtonItemStylePlain target:self action:@selector(clickThree:)];
// I'm not really sure what you meant by three button so I created a button with the text 3 on it. You will have to define a function clickThree which will be called on click.
self.navigationItem.rightBarButtonItem = threeButton;
[threeButton release];
Vincent Osinga
2009-12-09 12:30:36