❓How to dynamically insert or delete some elements(怎么动态的插入或者删除一组元素)
You can change the element properties of the opposite side of the TableView’s Sections array and then call reloadData.(您可以更改TableView的Sections数组的另一侧的元素属性,然后调用reloadData。)
❓How to listen to other agents of UIScrollView(怎么监听UIScrollView其他代理方法)
public struct ScrollViewDelegate {
public var scrollViewDidScroll:((_ scrollView: UIScrollView) -> Void)?
public var scrollViewWillBeginDragging:((_ scrollView: UIScrollView) -> Void)?
public var scrollViewWillEndDragging:((_ scrollView: UIScrollView, _ velocity: CGPoint, _ targetContentOffset: UnsafeMutablePointer<CGPoint>) -> Void)?
public var scrollViewDidEndDragging:((_ scrollView: UIScrollView, _ decelerate: Bool) -> Void)?
public var scrollViewWillBeginDecelerating:((_ scrollView: UIScrollView) -> Void)?
public var scrollViewDidEndDecelerating:((_ scrollView: UIScrollView) -> Void)?
}
Can implement the above proxy method of UITableView(可以实现`UITableView的上述代理方法)
Example
tableView.scrollDelegate?.scrollViewDidScroll = { scrollView in
}
I feel that there are too few supported features.(我觉得支持的功能太少了。)
typora-copy-images-to: ../SwiftTableViewGroup/images/ typora-root-url: ../SwiftTableViewGroup
SwiftTableViewGroup
.gir
Files-spark
-uos
-52
(已停止支持)UIScrollView
(怎么监听UIScrollView
其他代理方法)代码例子
ChangeLog(更新记录)
v2.0.0
UICollectionView
data driver(支持UICollectionView
数据驱动)Api
is easier to use(更改Api
使用更简单)安装
Swift Package Manager(Xcode 11)
CocoaPods
Carthage
Claim(要求)
Xcode11
Swift5.1
How to use(怎么使用)
UITableView
Fake code(伪代码)
Create a static text list(创建一个简单的列表)
Create complex TableView(创建复杂的表格)
Dynamic change quantity(动态更改数量)
Dynamic height(动态修改高度)
UICollectionView
Problem
❓How to dynamically insert or delete some elements(怎么动态的插入或者删除一组元素)
❓How to listen to other agents of
UIScrollView
(怎么监听UIScrollView
其他代理方法)Example
I feel that there are too few supported features.(我觉得支持的功能太少了。)
Api Document(Api 文档)
contact me