objective c - Best practice for View-Routing in iPhone SDK -


I have participated in a little problem developing a core data driven quiz and about a best practice to solve My problem is a bit confused.

I have around five templates for different questions, from which the question arises, in which it will be loaded. So I check that there is 1 question in the template and press the new question-template view in my navigation controller. Make all your methods the same code, I want to write a function (I came from php) which argues to the next question-id and decides that the template will be loaded and press the next view in the navigation-controller.

What is the best practice to solve this problem? Can I write functions with access to navigation controller, and my core data classes and if yes, do I have to create this function?

Greetings, Mr.D

OK I think I get a way But there is another error here, I am making a class named Questionerwar and define a class method. I will import this class into each visual controller where it is necessary. The class method gets the right template without the core data of any problem. But now I do not want to load the correct footage. For this, I need to access the defined Navigation Controller in my AppDelegate.

So how can I use Navigation Controller for another class in my AppDelegate?

Hope for a reply Mr.-D


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -