Soldato
Hey all.
I've knocked up a basic iPhone app which has a UIViewController and 2 UIViews. You can switch from View1 to View2 and back all day long.
The problem though, is that this app is basically a quiz, so View2 is a layout for asking a question, so if the quiz is 10 questions long (it can be a dynamic number of questions, as set in the app settings), I need to repeatedly show View2 over and over 10 times, each time changing the questions and answer (as read from a global NSArray) on the viewDidLoad event.
Still with me?
I'm cool with the pulling out of info from the array, it's just that I can't figure out how to show a new instance of View2, when a previous instance of it is currently visible?
There are lots of tutorials about how to swap between views, but not create and replace on the fly.
Can anyone help?
I've knocked up a basic iPhone app which has a UIViewController and 2 UIViews. You can switch from View1 to View2 and back all day long.
The problem though, is that this app is basically a quiz, so View2 is a layout for asking a question, so if the quiz is 10 questions long (it can be a dynamic number of questions, as set in the app settings), I need to repeatedly show View2 over and over 10 times, each time changing the questions and answer (as read from a global NSArray) on the viewDidLoad event.
Still with me?
I'm cool with the pulling out of info from the array, it's just that I can't figure out how to show a new instance of View2, when a previous instance of it is currently visible?
There are lots of tutorials about how to swap between views, but not create and replace on the fly.
Can anyone help?