Greetings.
I am creating a comic book using view controllers & accompanying classes for each page. When the user taps the right side of the page I use a simple push segue to move to the next page which slides in from the right. And if the user taps the left side of the page the previous page sides in from the left. To get it to do that I used a method rather than a push segue because if I use a push segue, the previous page will side in, but also from the right which is visually confusing to the user. That method is:
- (IBAction)goBackToD1Page5:(id)sender
{
[self.navigationController popViewControllerAnimated:YES];
}
This works just fine until the end. Because at the end of the comic, I want it so when the user taps the right side of the page (there is an elongated invisible button there waiting to be tapped as in all the pages) the user sees an animation in the lower right side of the page and then the animation is finished, they are brought back all the way to the first page of the comic which effectively turns the plot of the comic into a loop.
So what I need is a method to do this. Not one that pops the present View Controller off the stack to reveal the previous page but one the brings the user to Page 1 of the comic (the very first page is the Cover page but I don't want the user to go there). Can anyone help me here. I've tried this and I've tried that but I am getting nowhere.
JR