SOF
SOF

Reputation: 457

How to add navigation bar in uitableview

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

Answers (3)

R. Dewi
R. Dewi

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

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

bharath gangupalli
bharath gangupalli

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

Related Questions