I am developing a science game for the iPad that lets you choose a level and some questions about science elements are displayed and the user must choose the correct answer. I use a UITableview
to display the "level select" screen and once the user selects the level the didSelectRowAtIndexPath
sets an int currentLevel on the "game screen".
After the level is completed I want to create an UIButton
so that the user can go to the next level without going back to the "level Select" screen (UITableView
).
Essentially I want to reload the view and set the int currentLevel to display the correct level for the game
Any help would be appreciated
You can alloc your level selector view controller and present it modally in current view.
UIViewController *levelPicker = [[UIViewController alloc]init];
[self presentModalViewController:levelPicker animated:YES];
[levelPicker release];