Commit d6bde33a authored by 曹云霄's avatar 曹云霄

no message

parent 28b44508
......@@ -658,7 +658,7 @@
BOOL boolValue = [[self.openArray objectAtIndex_opple:button.tag-100] boolValue];
NSMutableIndexSet *index = [[NSMutableIndexSet alloc]init];
for (int i=0; i<self.openArray.count; i++) {
if ([[self.openArray objectAtIndex:i] isEqualToString:@"1"]) {
if ([[self.openArray yx_objectAtIndex:i] isEqualToString:@"1"]) {
[self.openArray replaceObjectAtIndex:i withObject:@"0"];
[index addIndex:i];
}
......
......@@ -489,7 +489,7 @@
- (void)changeAddresscell:(AddressModel *)model withcellindex:(NSInteger)cellindex
{
[self dismissViewControllerAnimated:YES completion:nil];
[[self.datasArray objectAtIndex:1]replaceObjectAtIndex:cellindex withObject:model];
[[self.datasArray yx_objectAtIndex:1]replaceObjectAtIndex:cellindex withObject:model];
NSIndexPath *indexpath = [NSIndexPath indexPathForRow:cellindex inSection:1];
[self.generateOrderTableview reloadRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationLeft];
}
......@@ -507,7 +507,7 @@
//判断是否为选中
if ([model.fid isEqualToString:addressid]) {
[[self.datasArray objectAtIndex:1] removeObjectAtIndex:i];
[[self.datasArray yx_objectAtIndex:1] removeObjectAtIndex:i];
NSIndexPath *indexpath = [NSIndexPath indexPathForRow:i inSection:1];
[self.generateOrderTableview deleteRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationLeft];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment