My application has a structure like the following:
One UIView with 5 buttons (this is a navigation controller ). When each button is pressed I push a UItableView in the navigation controller. My problem now is that , I have created a couple of Custom Cells which have their own classes. Those cells have a few buttons in. When each of those is buttons is pressed I want o "PUSH" another view in the navigation controller. The problem is that when I create the selector for the button in the cell's class, It doesn't recognize the "self.navigationcontroller" to push the new view. How can I pass the navigation controller as a parameter in the init method of the cell for example?
Please don't propose me to pass the selectors as parameters. I want to have a class that initializes a custom UIToolBar later which will be put in almost all my view, so I will want to pass the navigation controller as parameter so I won't have to create all methods again in each of my views.