I have set up a TabBar with a tab which includes a NavController and a TableView everything is working fine with loading the the tableview with data, but the didSelectRow method is not pushing the view...
I have set up a TabBar with a tab which includes a NavController and a TableView everything is working fine with loading the the tableview with data, but the didSelectRow method is not pushing the view...
I have also tried not having the alert there, but the same problem.
When i click at a cell the alert pops up, but the push thing doesnt work. without the alert,, still nothing.
I have set everything correctly up and i have imported DetailViewController.h
And everything, Please help me with this.
Thank You.
Everything there looks fine to me. I can only assume that the navigationController is not connected correctly. Have you tried outputting the navigation controller to make sure it is there?
Everything there looks fine to me. I can only assume that the navigationController is not connected correctly. Have you tried outputting the navigation controller to make sure it is there?
Code:
NSLog(@"%@",self.navigationController);
How should it be connected if its not/wrong connected?
How should it be connected if its not/wrong connected?
It seems that there is no way to manually set the navigationController. You have to make sure that the tableview is actually within the navigationcontroller. It is possible that you are simply just showing the tableview on top of the navigation controller or something. Are you doing this through code or through interface builder?
It seems that there is no way to manually set the navigationController. You have to make sure that the tableview is actually within the navigationcontroller. It is possible that you are simply just showing the tableview on top of the navigation controller or something. Are you doing this through code or through interface builder?
Im setting up the tableview within the NavigationController class files.
So i really dont know whats wrong.
Im setting up the tableview within the NavigationController class files.
So i really dont know whats wrong.
All help is appreachiated.
Thank you
Can you please post the code where you are initializing the navigation controller (if you are doing it with code) and also the code where you are setting up the tableview and adding it to the navigationController?
You're making it sound like you have a table view inside of a navigation controller.
You probably want one of the following:
1. A table view _controller_ inside of a navigation controller
2. A table view inside of a view controller that is inside of a navigation controller
Which one depends on what else you want the view to do.
Oh, and I think that the bundle: parameter should be nil.
You're making it sound like you have a table view inside of a navigation controller.
You probably want one of the following:
1. A table view _controller_ inside of a navigation controller
2. A table view inside of a view controller that is inside of a navigation controller
Which one depends on what else you want the view to do.
Oh, and I think that the bundle: parameter should be nil.
I think i already have number 2 set up, and i changed the bundle: to nil. Nothing Happened. Im really stuck at this, i can send my project to one of you.
Or you can help me out with some more things to try....
Post a screen shot of your XIB file, or type out what it looks like. Not the view, the listing of items.
And/or, things to verify:
1. Your File's Owner should be set to your DetailViewController class.
2. AFTER you do that, you need to ctrl-drag from File's Owner to the view, and reconnect the view outlet.
Oh, and what exactly are you seeing? Does it just stay on your original screen, or is the new screen blank? If it stays on the original screen, what was the answer to drewag's NSLog question?
I now sit with a new nib for the table and the original for the navController inside the TabBar and loads its view from the new nib.
The tableview works fine and loads nice, but now theres no navBar to see and the pushView doesnt work either.
Can anyone help me with this?