3

我正在使用视图转换样式“UIPageViewControllerTransitionStylePageCurl”在多个页面/视图中导航书本。目前页面的整个左侧和右侧——从上到下——“听”点击或滑动手势导致翻页。

如何将这些响应区域限制在屏幕的最左下角和右下角区域(请参阅屏幕截图中的彩色点)以避免与要放置在屏幕上的其他按钮发生冲突?

截屏

这是我当前设置的带有页面卷曲的 UIPageViewController:

NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithInteger:UIPageViewControllerSpineLocationMin] 
                                                    forKey:UIPageViewControllerOptionSpineLocationKey];

[self setPageController:[[UIPageViewController alloc]initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl
                                                       navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
                                                                     options:options]];
[pageController setDataSource:self];
[[pageController view] setFrame:[[self view]bounds]];

RollViewController *rvc = [[RollViewController alloc]init];
NSArray *viewControllers = [NSArray arrayWithObject:rvc];

[pageController setViewControllers:viewControllers
                         direction:UIPageViewControllerNavigationDirectionForward
                          animated:NO
                        completion:nil];

[self addChildViewController:pageController];
[[self view]addSubview:[pageController view]];
[pageController didMoveToParentViewController:self];
4

0 回答 0