Giter Site home page Giter Site logo

liangdrime / swipetableview Goto Github PK

View Code? Open in Web Editor NEW
2.3K 66.0 442.0 28.08 MB

Both scroll horizontal and vertical for segment scrollview which have a same header. — 类似半糖、美丽说主页与QQ音乐歌曲列表布局效果,实现不同菜单的左右滑动切换,同时支持类似tableview的顶部工具栏悬停(既可以左右滑动,又可以上下滑动)。兼容下拉刷新,自定义 collectionview实现自适应 contentSize 还可实现瀑布流功能

License: MIT License

Objective-C 98.94% Ruby 1.06%
swipeview tableview commonheader collectionview bantang

swipetableview's Issues

关于在iOS8 和iOS7上运行的问题

在iOS8 和iOS7 上,如果我定义的swipeHeaderView 是xib 并且xib中使用了atuoLayout 添加了约束,那么swipeHeaderBar就无法悬浮,并且会一闪一闪的。。作者,这个问题帮忙解决下吧,我的项目中用到了你的SwipeTableView,最近马上要上线了,测试iOS7 和8 的时候发现了这个问题==。。。

添加上拉加载

一共4个item,要给第三个和第四个添加上拉加载,要怎么添加啊

如果设置垂直方向bounce。

看了源码,貌似可以在STHeader的
- (void)handlePanGesture:(UIPanGestureRecognizer *)panGestureRecognizer方法里设置,但是不知道UIGestureRecognizerStateChanged中各种Y值是干什么的,能否给个解决方案呢?

reusingView为nil

加载过的collectionView再次返回reusingView为nil的可能原因是什么呢

iOS10 crash

反复滑来滑去有纪律触发crash,问题出在UIView+STFrame的

  • (void)setSt_bottom:(CGFloat)b {
    self.frame = CGRectMake(self.st_left, b - self.st_height, self.st_width, self.st_height);
    }
    warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
    貌似是无限递归

下拉刷新带来的问题

下拉刷新等待时滑动了item,headerView的frame发生变化,我把demo发给你,有空帮我看下,谢谢啦!

手势冲突问题

加上过滤代码 还是需要点击屏幕一下 scrollView 的滑动手势 跟headerView上控件的点击事件才能响应

tableview被tabbar遮挡的问题

tableview最下面会被tabbar遮挡
尝试设置automaticallyAdjustsScrollViewInsets但没有效果,可能需要监控tableview的contentOffset来整体上移tableview

Swift3.0开发问题

当我实现swipeTableView(_ swipeView: SwipeTableView!, viewForItemAt index: Int, reusing view: UIScrollView!) -> UIScrollView!{}这个协议方法的时候,我创建了一个自己的tableView,然后用将他赋值给重用的view,报错:Cannot assign to value: 'view' is a 'let' constant!谢谢回答!!!

Header悬浮和contentSize不同item滑动的问题。

作者,你好。我的页面导航栏是根据滑动item滑动到一定距离来隐藏的。我把你Demo里的导航栏设置了透明度,发现你是把bar悬浮了,然后把你的segmentBar加到了header里,防止点在bar上面的时候,无法上下滑动。结果还是发现你悬浮了他。
那么,在我的页面里,当向上滑动,达到item的上边缘隐藏导航栏的时候,不想悬浮这个bar怎么办?
untitled
SwipeTableView.zip

是否够能支持ScrollView呢?

要显示的内容部分是否应该加上能支持ScrollView界面呢? 因为有一些界面只能用scrollView来做,如果能兼容就更好了

添加MJRefreshFooter

加了两个Tab 每个tab是1个tableviewcontroller 第一次滑到第2个 tableviewcontroller的时候,第2个会自动走 self.mj_footer = [GJRefreshFooterWithTabBar footerWithRefreshingBlock:^{
[selfWeak loadMoreBrandData];
}];
上拉加载更多。什么原因?

請問

請問segment style可以設定為底線的形式嗎?
請問可否設定底線的顏色?
2016-07-18 12 47 21

在使用过程中, 下拉刷新有问题, 请指教

没有定义宏ST_PULLTOREFRESH_HEADER_HEIGHT,采用demo中的默认方法.
设置了headerView和headerBar. 同时headerTopInset=0. 无论是使用demo中的下拉刷新,还是MJRefresh. 下拉时, 整个页面都下移且不回弹. 直到拉到屏幕底部, 下拉刷新才触发. 求问一下这是什么原因

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.