Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageController style on tableViewcell static #1

Open
lijufengxin opened this issue Oct 25, 2017 · 5 comments
Open

PageController style on tableViewcell static #1

lijufengxin opened this issue Oct 25, 2017 · 5 comments

Comments

@lijufengxin
Copy link

The top switch is also made of sliding。When the first entry, the data slide up to the top and then continue to slide, and then switch to the last one, can not slide down.

@ticsmatic
Copy link
Owner

ticsmatic commented Oct 25, 2017

show me your code

@pasmall
Copy link

pasmall commented Nov 10, 2017

  • (UIViewController *)controllerWithIndex:(NSInteger)index {
    if (index < [titles count] && index >= 0) {
    UIViewController *controller = [self.dataSource viewcontrollerWithIndex:index];
    controller.index = index;
    controller.pageDelegate = self;
    return controller;
    }
    return nil;
    }

这里前进的返回值是 1—count
后退的返回值是 -1 —count-1
所有第一个和最后一个页面是静态的呀,老铁

@lijufengxin
Copy link
Author

pasmall 你好请问可以加下qq或者微信吗?想请教下你

@ticsmatic
Copy link
Owner

ticsmatic commented Feb 8, 2018

@pasmall 不太清楚你所说的静态页面是什么意思。这个组件使用的是UIPageViewController实现的,UIPageViewController内部原理和三图的轮播图原理很类似,1.加载左右,二.交换。所以UIPageViewController的代理方法每次都会获取当前页面的左右页面加载进内存以便使用

@lijufengxin
Copy link
Author

@west-east 你demo里面的 PageController Style On TableViewCell Sticky Footer More 这一个。点击进入第一个分时往上滑动。然后切换到最后一个下拉 就下拉不了了。你看下是不是这样的 本来想用你的但是发现这个bug了 要第一次进入会复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants