I have made a four view application. Everything works pretty well. I have four viewcontrollers and have imported each viewcontroller at each view. To move from the the firstView to the secondView etc i use this code:
When I reach the fourthView I have a button and want to return to the firstView. I want to kind of loop the app if you know what i mean. The code I use to go to the first is the same:
When the button is pressed it goes to the firstView but then when you press the button that goes to the secondView the app quits! What kind of code should i use?
Code:
- (IBAction)pushButton:(id)sender {
[self presentModalViewController:secondView animated:YES];}
When I reach the fourthView I have a button and want to return to the firstView. I want to kind of loop the app if you know what i mean. The code I use to go to the first is the same:
Code:
- (IBAction)pushButton:(id)sender{
[self presentModalViewController:firstView animated:YES];}
When the button is pressed it goes to the firstView but then when you press the button that goes to the secondView the app quits! What kind of code should i use?