title: Best practice for View-Routing in iPhone SDK
body: <p>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.</p>
  <p>I have approximately five templates for the different questions, which will be loaded in case which question is displayed. So I check which template has question 1 and push the new question-template view into my navigation controller. Because its always the same code I want to write a function (I came from php) which gets the next question-id as argument and decide which template will be loaded and push the next view into the navigation-controller.</p>
  <p>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?</p>