Reputation: 457
App based on Navigation base application.How to add Navigation bar in UItableview controller. Symptoms as a tableview controller(xib). I need to add in Navigation bar to symptoms.
Upvotes: 0
Views: 6239
Reputation: 4271
maybe u can change in the xib, add a UIView below the TableView and then add the navigation bar as a subview of UIView
Upvotes: -1
Reputation: 345
you dont add a navigationController to a tableViewController. its the other way around. First add anavigationController and set its rootViewController as the tableViewControler.
Upvotes: 2
Reputation: 550
U can add it as you add the sub view to super view -loadview: navBar2=[[UINavigationBar alloc]init]; [navBar2 sizeToFit]; [self.view addSubview:navBar2]; //add button on the bar. [navBar2 addSubview:button];
Upvotes: 2