فهرست منبع

修改Sort View的Item图标一直显示

Pen Li 9 سال پیش
والد
کامیت
1220757ffe

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
RedAnt ERP Mobile/iSales-NPD/SortItemCell.m

@@ -33,6 +33,7 @@
         
         
         [self addSubview:self.selectedView];
         [self addSubview:self.selectedView];
         [self addSubview:self.sortTitleLabel];
         [self addSubview:self.sortTitleLabel];
+        self.sortIndex = YES;
     }
     }
     return self;
     return self;
 }
 }

+ 5 - 5
RedAnt ERP Mobile/iSales-NPD/SortItemViewController.m

@@ -112,9 +112,9 @@
     }
     }
     cell.sortIndex = indexPath.row;
     cell.sortIndex = indexPath.row;
     
     
-    if (self.sortIndex == indexPath.row) {
+//    if (self.sortIndex == indexPath.row) {
         cell.selectedSort = YES;
         cell.selectedSort = YES;
-    }
+//    }
     
     
     return cell;
     return cell;
 }
 }
@@ -136,9 +136,9 @@
 //    });
 //    });
 
 
     if (indexPath.row != self.sortIndex) {
     if (indexPath.row != self.sortIndex) {
-        NSIndexPath *oldIndexPath = [NSIndexPath indexPathForRow:self.sortIndex inSection:0];
-        SortItemCell *oldCell = [tableView cellForRowAtIndexPath:oldIndexPath];
-        oldCell.selectedSort = NO;
+//        NSIndexPath *oldIndexPath = [NSIndexPath indexPathForRow:self.sortIndex inSection:0];
+//        SortItemCell *oldCell = [tableView cellForRowAtIndexPath:oldIndexPath];
+//        oldCell.selectedSort = NO;
         
         
         self.sortIndex = indexPath.row;
         self.sortIndex = indexPath.row;
         cell.selectedSort = YES;
         cell.selectedSort = YES;