1
hyzjshwo May 19, 2016
我没实现过这样的,不过我可能会尝试 UIScrollview + UITableview ,应该可以实现吧
|
2
hyzjshwo May 19, 2016
好像有简单的方法
|
4
wj2061 May 19, 2016
scrollview 先设好 frame , 然后设成 tableview 的 tableHeaderView
|
5
enjoeq May 19, 2016
我能想到的是整个就是一个 tableview ,只是把 tableview 的 contentInset 和 indicatorInset 设为轮播图片的 view 的高度,然后再 observe tableview 的 contentOffset ,当 tableview 的 cell 向上滚动超过界限时就修改轮播图片的 origin.y ,并且同时修改 tableview 的 contentInset 和 indicatorInset 直到 0 ,大概就是这样的思路吧,不过只是猜想而已,没有实际尝试过,有错误请指正,谢谢。
|
6
cbspapapa May 19, 2016
https://github.com/cbsfly
可以参考我 github 里面知乎日报的实现或者轮播广告的 demo |
7
zhlooking OP |
8
kitalphaj May 20, 2016
@zhlooking 如果 headerView 不行,就可以考虑把第一个 cell 设置成轮播。我在几个 App 里面都实现过,思路很清晰也很简单。
|
9
kobe1941 May 20, 2016
|
10
bloodshed May 23, 2016
tableViewHeader
|
11
hulz413 Jun 11, 2016
我给 UIScrollView 加了个 category ,实现了无限轮播的功能,有需要可以参考下: https://github.com/hulizhen/HLZInfiniteScrollView
|
12
fhefh Jun 16, 2016
mark~~
|
13
fhefh Jun 16, 2016
@cbspapapa https://github.com/cbsfly/CBSSegmentView 这个不错 start
|