ydj / djrefresh Goto Github PK
View Code? Open in Web Editor NEW下拉刷新,上拉加载更多
License: MIT License
下拉刷新,上拉加载更多
License: MIT License
在 从nav用push进入的列表页面中不管是上拉还是下拉刷新后顶面的位置会不正确,我在顶部加的searchBar位置就不正确了,无法进行search操作,不知要如何修正,还请解决这个问题
与UIKit+AFNetworking一起用按下home的时候EXC_BAD_ACCESS
不知为何要改名呢?
另外我试了一下 autoRefreshTop autoRefreshBottom 感觉效果并不太好,不是很理想。
关于 navigationBar.translucent = false 这个还是存在,在界面设计时有什么方法可以设置一下就可以解决的吗?
好像是tableview回到顶端,然后再回到松手的offset再向上移动。
@ydj I do not know why has kind of white flash when refresh UICollectionView
你好,为什么在djrefresh类的inittopView里面可以修改topview的背景颜色,但是当设置topEnabled为yes时不能直接设置refresh.topRefreshView.backgroundColor为其他颜色呢
我是将searBar放在了tableHeadView里,使用refreshcontrol下拉或者上拉后,searchbar位置就会被推到顶部无法显示了。实际上其他的scrollview也存在这个问题,也就是刷新后refreshcontrol计算的位置不正确。
感觉上是没有考虑nav所占的高度。
但我不会Oc,所以我在refreshdelegate中添加了一个fixRefresh以修正这个问题,使用swift来完成
在controller中实现
func fixRefresh(){
var f = view.frame
if let n = self.navigationController?.navigationBar.frame {
f.origin.y = n.height + n.origin.y
}
view.frame = f
}
在finish中调用
if ([self.delegate respondsToSelector:@selector(fixRefresh)])
{
[_delegate fixRefresh];
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.