I am trying to replicate iPhone's Contacts application and to create a button over navigation bar. Actually the view is not a UINavigation
controller. I just added the navigation bar programatically but I am struggling to create a title and a button on that navigation bar.
I am using the following code
[[UIBarButton alloc]] initWithTitle:@"Done"
Style:UIBarButonItemStyleBorderd
target:Self
action:selector(btnClicked)];
self.navigationItem.rightBArButtonItem=btnDone;
[self.view addSubview:navigationBar];
Please refer iphone contact application in simulator.
Any help will be appreciated.