Hi,
I have a framework project which offers a view controller (MyViewController) ready to use for a specific task and I want it to be all the time embedded in a navigation controller. It's analog to e.g. MFMailComposeViewController. Apple says that UINavigationController should not be subclassed so my question is how to implement this situation.
The user of the framework uses MyViewController in this way:
When the MyViewController is presented, I want it to be already embedded in a navigation controller. I do not want the user to do it.
How can I do it?
cheers,
Tex
I have a framework project which offers a view controller (MyViewController) ready to use for a specific task and I want it to be all the time embedded in a navigation controller. It's analog to e.g. MFMailComposeViewController. Apple says that UINavigationController should not be subclassed so my question is how to implement this situation.
The user of the framework uses MyViewController in this way:
Code:
MyViewController *myViewController = [[MyViewController alloc] init];
myViewController.mydelegate = self;
[self presentModalViewController: myViewController animated:YES];
When the MyViewController is presented, I want it to be already embedded in a navigation controller. I do not want the user to do it.
How can I do it?
cheers,
Tex
Last edited: