objective-c - SVPullToRefreshPositionBottom 属性未在 swift 3.0 中设置

标签 objective-c swift swift3

我使用 SVPullToRefresh 来刷新 collectionView。它在从顶部拉出时工作,但它的定位属性是 position:SVPullToRefreshPositionBottom 未设置。请帮助我

这是代码

self.collectionView.addPullToRefresh(actionHandler: {() -> Void in
            self.pagination()

        })

最佳答案

试试这个,它工作正常

collection .addPullToRefresh(actionHandler: {}, position: .bottom)

关于objective-c - SVPullToRefreshPositionBottom 属性未在 swift 3.0 中设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41760428/

相关文章:

iphone - 带有部分的 UICollectionViewFlowLayout(但没有分节符)

iphone - 在 Objective C 中设置静态变量

ios - 下划线覆盖 NSAttributedString 中的文本

ios - 是否可以从一个标签栏 Controller 导航到另一个标签栏 Controller ?

swift - 打印事件应用程序错误帮助 - 无法转换为字符串类型

iPhone:反转 NSMutablearray 时收到警告

objective-c - 如何在 iOS 的 NSString 中显示 1/2 的字符?

ios - Objective-C 观察者——如何在 Swift 中使用

ios - 自动布局问题 Xcode 8 [_SwiftValue nsli_superitem]

swift - UICollectionView ScrollTo 崩溃