I have created a UITabBarController
in my app delegate.
where each tab bar item holds a different UINavigationController
that loads a custom UIViewController
with a NIB (using -pushViewController:
).
Inside one of the navigation controller, I load a custom UIView
class with a custom NIB also.
This view is loaded multiple times inside the UIViewController
.
The custom UIView
has a UIButton
, that on the event of touching it, I want to push a new UIViewController
on the stack.
Problem is that I 'lost' the UINavigationController
that holds the UIViewController
.
I know I should use delegates, but haven't figured out who should which class should be the delegate.
Thanks in advance!