فهرست منبع

1.修改iOS Apex Mobile Result快速下拉刷新时底部出现黑色。

Pen Li 8 سال پیش
والد
کامیت
5aff0c3159
2فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 2 0
      common/customUI/ResultCell.xib
  2. 7 1
      common/customUI/ResultViewController.m

+ 2 - 0
common/customUI/ResultCell.xib

@@ -17,7 +17,9 @@
             <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Lic-Ng-p4U" id="wsG-8E-9L2">
                 <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
                 <autoresizingMask key="autoresizingMask"/>
+                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
             </tableViewCellContentView>
+            <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
         </tableViewCell>
     </objects>
 </document>

+ 7 - 1
common/customUI/ResultViewController.m

@@ -26,7 +26,7 @@
 
 const int delta = 25;
 
-@interface ResultViewController () <JLRefreshDelegate,QLPreviewControllerDataSource,QLPreviewControllerDelegate,UIViewControllerPreviewingDelegate,ResultCellTouchDelegate>
+@interface ResultViewController () <JLRefreshDelegate,QLPreviewControllerDataSource,QLPreviewControllerDelegate,UIViewControllerPreviewingDelegate,ResultCellTouchDelegate,UITableViewDelegate,UITableViewDataSource>
 
 @property (weak, nonatomic) IBOutlet NSLayoutConstraint *w_constraint;
 @property (weak, nonatomic) IBOutlet NSLayoutConstraint *h_constraint;
@@ -721,10 +721,16 @@ const int delta = 25;
             cell.backgroundColor=UIColorFromRGB(color0);//[UIColor whiteColor];
         else
             cell.backgroundColor=UIColorFromRGB(color1);//[UIColor lightGrayColor];
+        
         return cell;
     }
     
 }
+
+- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
+    cell.backgroundColor = [UIColor whiteColor];
+}
+
 //#pragma mark - TouchLabel Delegate
 //- (void)touchLabel:(TouchLabel *)touchLabel touchesWtihTag:(NSInteger)tag
 //{