我有一个包含 UITextView 的页面,其中包含一些文本,有一个更改章节的选项,我将更改章节选项放在按钮单击中。我的下一章和上一章的代码是
-(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];
}
}
我的问题是如何UIPageController
在 ios5 的帮助下实现本章导航?我只想看起来像在 iBook 中。有没有办法做到这一点?