Comments (3)
如果设置了 #define ST_PULLTOREFRESH_HEADER_HEIGHT xx
支持常用下拉刷新的话,目前没有做UIScrollView
的支持。
如果不是支持常用的下拉刷新,UIScrollView
是可以支持的。不过有一点需要注意,自己的scrollview需要设置contentSize(UIScrollView
的contentSize默认为zero),或者设置shouldAdjustContentSize
为YES,自适应调整contentSize。
from swipetableview.
由于考虑项目的扩展性,并没有考虑自定义UIScrollView,实现支持UIScrollView
,同时设置#define ST_PULLTOREFRESH_HEADER_HEIGHT xx
支持下拉刷新。
不过,在最新的提交中,通过一些修改下拉刷新组件frame的方式,在不设置宏#define ST_PULLTOREFRESH_HEADER_HEIGHT xx
的条件下实现下拉刷新的支持。原理就是减小下拉刷新组件(RefreshHeader)的y值,抵消contentInsets的top值影响,是RefreshHeader不被遮挡。
这样可以采用最基本的方式,不设置宏#define ST_PULLTOREFRESH_HEADER_HEIGHT xx
来达到所有ScrollView的支持。
具体的实现已经提供在Demo中了,并且实现了简单的下拉刷新组件STRefreshHeader
以供参考。
from swipetableview.
目前scrollview是支持的,我要UIwebview,用webview.scrollview是不行的,我改的试试
from swipetableview.
Related Issues (20)
- 给继承自STCollectionView 的collectionview 添加MJRefreshHeader 下拉刷新回弹位置错误 HOT 1
- 使用方法还是太不方便了
- alwaysBounceHorizontal 属性没有效果
- 添加mj_header位置问题 HOT 1
- reoloadData无效
- swipeTableViewWillBeginDragging不响应
- Tableview的点击
- Multiple methods named 'frame' found with mismatched result, parameter type or attributes HOT 2
- MJRefresh上拉加载更多 偏移量问题 HOT 2
- 动态修改headview高度的时候显示不正确
- 没有用autolayout的后果
- iOS12 - iPhoneXS 右滑crash HOT 3
- 从别的页面返回更新headerView的高度时布局不对 HOT 1
- 提两点功能补充
- iPhone X适配 和 sectionHeader问题
- iOS 8 crash
- STHeaderView 手势冲突问题
- 如果进入页面,想指定某一个item展示,而不是默认第一个item0,怎么处理?是不是应该暴露一个selectedIndex HOT 1
- attempt to scroll to invalid index path:
- 在维护App的时候,发现了前人集成了这个东西,代码耦合度高的吓人,还很容易触发异步刷新的crash问题,虽然我做了很多修改,源码也做了修改。controller 代码就有5000行,我是心力交瘁啊 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipetableview.