Hey,
I've run into a little problem while developing a Core Data driven Quiz and be a bit confused about a best practice to solve my problem.
I have approximately five templates for the diffrent questions, wich will be loaded in case wich question is displayed. So I check wich template has question 1 and push the new question-template view into my navigation controller. Becuase its allways the same code I want to write a function (I came from php) wich gets the next question-id as argument and decide wich template will be loaded and push the next view into the navigation-controller.
What is the best practice to solve this problem? Can I write a function with access to the navigation-controller, and my Core Data classes. And if yes where I have to create this function?
Greetings, Mister-D