Merge pull request #13 from zhengrusong/master

page view刷新时 需要重新layout.
This commit is contained in:
Wenchao Ding 2017-02-24 10:06:12 +08:00 committed by GitHub
commit b1c291fb45
1 changed files with 1 additions and 0 deletions

View File

@ -405,6 +405,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
/// Reloads all of the data for the collection view.
@objc(reloadData)
open func reloadData() {
self.collectionViewLayout.needsReprepare = true;
self.collectionView.reloadData()
}