XQPageController icon indicating copy to clipboard operation
XQPageController copied to clipboard

PageController style on tableViewcell static

Open lijufengxin opened this issue 7 years ago • 5 comments

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.

lijufengxin avatar Oct 25 '17 06:10 lijufengxin

show me your code

ticsmatic avatar Oct 25 '17 08:10 ticsmatic

  • (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 所有第一个和最后一个页面是静态的呀,老铁

pasmall avatar Nov 10 '17 09:11 pasmall

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

lijufengxin avatar Feb 08 '18 08:02 lijufengxin

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

ticsmatic avatar Feb 08 '18 14:02 ticsmatic

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

lijufengxin avatar Feb 09 '18 09:02 lijufengxin