vijay adhikari
vijay adhikari

Reputation: 2455

uinavigation not working

My navigation controller not working.

I take a tabbar-based application now from app delegate. I want to add a navigationcontroller but it's not working.

[window addSubview:navigationController.view];

I simply make an object of uinavigation controller and synthesize it.

Upvotes: 2

Views: 158

Answers (3)

iVipS
iVipS

Reputation: 1485

  • Open MainWindow.xib.
  • Under TabBarController you will see two view controllers.
  • Delete both of the view controllers.
  • Now, from the library add two navigation controllers under TabBatController.
  • Now, open the inspector of the navigation controller and set its nib name and the class name.

i think this will solve your problem.

Upvotes: 0

Saurabh
Saurabh

Reputation: 22893

Actually you don't need to add navigation Controller's view in the window, if you want to add a navigation controller in tabbar controller application.

See the below screen shot, you just need to select the tabbarcontroller in the IB and then from inspector window you can select class or particular tab item. Just make then navigation controller.

enter image description here

Upvotes: 1

Related Questions