小编iob*_*boi的帖子

将UIPageViewController(使用TransitionStyleScroll)平移手势限制到某个区域

在我的应用程序中,我有一个RootPageViewController,它包含UIPageViewController和一个或多个DetailPageViewController,UITableView作为子视图.

                          DetailPageViewController
                        / 
RootPageViewController  - DetailPageViewController
                        \
                          DetailPageViewController
Run Code Online (Sandbox Code Playgroud)

在每个DetailPageViewController的顶部是一个小空间,应该可以滑动并转到下一个DetailPageViewController.

 ------------------- 
|                   |
|                   |  -> UIPageViewController should respond to pan's
|                   |
|-------------------|   --------------------------------------------
|  CellContent      |  
|-------------------|
|  CellContent      |
|-------------------|  -> UIPageViewController should disable UIPageViewController pan's
|  CellContent      |
|-------------------|
|  ...              |
Run Code Online (Sandbox Code Playgroud)

在iOS 7天气应用程序是一个滚动视图与整个弱预测谁不知何故覆盖或禁用UIPageViewController的平底锅.

我该如何重现这种行为?

很抱歉找不到截图

cocoa-touch objective-c uigesturerecognizer uipageviewcontroller

6
推荐指数
1
解决办法
1713
查看次数