I am new to iOS development.I have create a navigation bar in my iPad application view.I don\'t need navigation controller that\'s why i have added only navigation bar. Now
You can add buttons to navigation bar as follows:
UIBarButtonItem *btnSave = [[UIBarButtonItem alloc]
initWithTitle:@"Save"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(save_Clicked:)];
navBar.rightBarButtonItem = btnSave;
[btnSave release];
UIBarButtonItem *btnCancel = [[UIBarButtonItem alloc]
initWithTitle:@"Cancel"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(cancel_Clicked:)];
navBar.leftBarButtonItem = btnCancel;
[btnCancel release];