I'm having a page which contains UITextView with some text in it, there is a option to change the chapter, I put the change chapter option in a button click. My code for the next chapter and previous chapter is
-(void) leftswipedetected:(UISwipeGestureRecognizer*)recognizer {
delegatee.selectedChapter = [NSString stringWithFormat:@"%d",[delegatee.selectedChapter intValue] + 1];
[delegatee reloadVerses];
[self resetReadViewToVerse:1];
}
-(void) rightswipedetected:(UISwipeGestureRecognizer*)recognizer {
if(![delegatee.selectedChapter isEqualToString:@"1"])
{
delegatee.selectedChapter = [NSString stringWithFormat:@"%d",[delegatee.selectedChapter intValue] - 1];
[delegatee reloadVerses];
[self resetReadViewToVerse:1];
}
}
my question is how can I implement this chapter navigation with the help of UIPageController
in ios5?. I just want to look like in iBook. Is there any way to do this?
There is Nothing like UIPageViewController
in iOS , it's UIPageControl and it just provides you with a UI type pagecontrol and you to change the chapter programmatically on tap on UIPagecontrol or or you may attach a UISwipeGesture to it.