瀏覽代碼

fix 测试数据

huzhiqiang 3 年之前
父節點
當前提交
9bee5de227
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      BFFramework/Classes/Stuckpoint/View/PQEditPublicTitleView.swift

+ 3 - 3
BFFramework/Classes/Stuckpoint/View/PQEditPublicTitleView.swift

@@ -195,12 +195,12 @@ class PQEditPublicTitleView: UIView {
 
 extension PQEditPublicTitleView: UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIScrollViewDelegate {
     func collectionView(_: UICollectionView, numberOfItemsInSection _: Int) -> Int {
-        return 1;//titles.count
+        return titles.count
     }
 
     func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
         let cell = collectionView.dequeueReusableCell(withReuseIdentifier: String(describing: PQEditPublicTitleViewContentCell.self), for: indexPath) as! PQEditPublicTitleViewContentCell
-        cell.titleStr = "aaaa";//titles[indexPath.row]
+        cell.titleStr = titles[indexPath.row]
         return cell
     }
 
@@ -210,7 +210,7 @@ extension PQEditPublicTitleView: UICollectionViewDelegate, UICollectionViewDataS
     }
 
     func collectionView(_ collectionView: UICollectionView, layout _: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
-        let title = "aaa";//titles[indexPath.row]
+        let title = titles[indexPath.row]
  
         let textSize =  sizeWithText(text: title, font: UIFont.systemFont(ofSize: 17, weight: .regular), size: CGSize.init(width: 295, height: CGFloat.greatestFiniteMagnitude))