Skip to content

Commit e0a52c2

Browse files
committed
1.2.6 fixbug
1 parent fd93d06 commit e0a52c2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

swiftArch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'swiftArch'
11-
s.version = '1.2.5'
11+
s.version = '1.2.6'
1212
s.summary = 'swift开发脚手架'
1313

1414
# This description is used to generate tags and improve search results.

swiftArch/Classes/basePage/PagingCollectionViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ open class PagingCollectionViewController: BaseViewController, UICollectionViewD
113113
open func loadSuccess(resultData: NSObject?) {
114114
self.collectionView?.showContent()
115115
self.pagingStrategy?.addPage(info: self.pagingList)
116-
let isFinish = self.pagingStrategy?.checkFinish(result: resultData, listSize: self.pagingList.count)
117-
self.collectionView?.setLoadMoreEnable(b: !isFinish!)
116+
let isFinish = (self.pagingStrategy?.checkFinish(result: resultData, listSize: self.pagingList.count) ?? true)
117+
self.collectionView?.setLoadMoreEnable(b: !isFinish)
118118
self.collectionView?.reloadData()
119119
if self.dataSource.isEmpty {
120120
self.collectionView?.showEmpty()

swiftArch/Classes/basePage/PagingTableViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ open class PagingTableViewController: BaseViewController, UITableViewDataSource,
116116
open func loadSuccess(resultData: Any?) {
117117
self.tableView?.showContent()
118118
self.pagingStrategy?.addPage(info: pagingList)
119-
let isFinish = self.pagingStrategy?.checkFinish(result: resultData, listSize: pagingList.count)
120-
self.tableView?.setLoadMoreEnable(b: !isFinish!)
119+
let isFinish = (self.pagingStrategy?.checkFinish(result: resultData, listSize: pagingList.count)) ?? true
120+
self.tableView?.setLoadMoreEnable(b: !isFinish)
121121
self.tableView?.reloadData()
122122
if self.dataSource.isEmpty {
123123
self.tableView?.showEmpty()

0 commit comments

Comments
 (0)