Skip to content

wode0weiyi/ListCountView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListCountView

使用方法:(注意:如果项目中有snpKit,则把本控件中的snapKit删除就可以了)

使用起来很简单,看代码

//刚开始触摸的时候,显示总数据条数(可根据自己需求改变)

func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
    let count = _dataArray.count
    //出现的调用方法
    self._countView.showIn(view: self.view, text: "共" + String(count) + "条" )
}

//结束触摸的时候,隐藏

func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
    self._countView.hide()
}

   

   不明白或者有什么问题欢迎咨询

About

在列表滑动的时候,在屏幕下方显示数据总条数,如:共XX条

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages