南鑫林 5 anni fa
parent
commit
b2788276a6

+ 4 - 4
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/Community/View/Cell/CardContent/CommentList/CardContentCommentListTableViewCell.swift

@@ -134,24 +134,24 @@ extension CardContentCommentListTableViewCell : UITableViewDelegate,UITableViewD
             let contentStr = "\(communityFollowPostCommentModel?.content ?? "")"
             let str =  nameStr + contentStr
             let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
-            return strHeight + 4
+            return strHeight
         }else {
             let communityRecommendCommentModel = communityRecommendDataModel?.comment?[indexPath.row]
             let nameStr = "\(communityRecommendCommentModel?.username ?? ""):"
             let contentStr = "\(communityRecommendCommentModel?.content ?? "")"
             let str =  nameStr + contentStr
             let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
-            return strHeight + 4
+            return strHeight
         }
     }
 
     
     func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
-        return 0
+        return 0.000001
     }
     
     func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
-        return 0
+        return 0.000001
     }
     
     func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/Community/ViewController/Follow/CommunityFollowViewController.swift

@@ -630,7 +630,7 @@ extension CommunityFollowViewController : UITableViewDelegate,UITableViewDataSou
                     let contentStr = "\(communityFollowPostCommentModel.content ?? "")"
                     let str =  nameStr + contentStr
                     let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
-                    height = (height ?? 0) + strHeight + 4
+                    height = (height ?? 0) + strHeight
                 }
                 
                 if (communityFollowDataModel?.relateData?.commentCount ?? 0) <= 2 {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/Community/ViewController/Recommend/CommunityRecommnendViewController.swift

@@ -517,7 +517,7 @@ extension CommunityRecommnendViewController : UITableViewDelegate,UITableViewDat
                         let contentStr = "\(communityRecommendCommentModel.content ?? "")"
                         let str =  nameStr + contentStr
                         let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
-                        height = (height ?? 0) + strHeight + 4
+                        height = (height ?? 0) + strHeight
                     }
                     
                     if (communityRecommendDataModel.commentCount ?? 0) <= 2 {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityFeaturedTopics/ViewController/CommunityFeaturedTopicsViewController.swift

@@ -576,7 +576,7 @@ extension CommunityFeaturedTopicsViewController : UITableViewDelegate,UITableVie
                     let contentStr = "\(communityRecommendCommentModel.content ?? "")"
                     let str =  nameStr + contentStr
                     let strHeight = str.heightForComment(font: kRegularFont14!, width: kScreenWidth-28)
-                    height = (height ?? 0) + strHeight + 4
+                    height = (height ?? 0) + strHeight
                 }
                 
                 if (communityRecommendDataModel.commentCount ?? 0) <= 2 {

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/MessageModule/MessageMain/ViewController/MessageMainViewController.swift

@@ -53,7 +53,7 @@ class MessageMainViewController: BaseViewController {
         observe = NotificationCenter.default.addObserver(forName: NSNotification.Name("MessageModuleTop"), object: nil, queue: OperationQueue.main, using: {
             [weak self] (notification) in
             if self?.collectionView.contentOffset == CGPoint(x: 0, y: 0) {
-                self?.userMemberMessageIndexApi()
+                self?.collectionView.mj_header.beginRefreshing()
             }else {
                 self?.collectionView.scrollToTop()
             }