未解决问题:
Posted EchoHG
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了未解决问题:相关的知识,希望对你有一定的参考价值。
1 - (NSMutableArray *)houseTypes { 2 ATTypeCellViewModel *typeVM1 = [ATTypeCellViewModel new]; 3 typeVM1.type = @"整租"; 4 typeVM1.isSelected = YES; 5 6 ATTypeCellViewModel *typeVM2 = [ATTypeCellViewModel new]; 7 typeVM2.type = @"合租"; 8 typeVM2.isSelected = FALSE; 9 10 ATTypeCellViewModel *typeVM3 = [ATTypeCellViewModel new]; 11 typeVM3.type = @"非转租"; 12 typeVM3.isSelected = FALSE; 13 14 ATTypeCellViewModel *typeVM4 = [ATTypeCellViewModel new]; 15 typeVM4.type = @"转租"; 16 typeVM4.isSelected = FALSE; 17 18 NSMutableArray *rent_one = [[NSMutableArray alloc]initWithObjects:typeVM1, typeVM2,nil]; 19 NSMutableArray *rent_two = [[NSMutableArray alloc]initWithObjects:typeVM3, typeVM4,nil]; 20 NSMutableArray *rent_hole = [[NSMutableArray alloc] init]; 21 [rent_hole addObject:rent_one]; 22 [rent_hole addObject:rent_two]; 23 24 return rent_hole; 25 } 26 27 28 #import <Foundation/Foundation.h> 29 30 @interface ATTypeCellViewModel : NSObject 31 32 @property(nonatomic, strong) NSString *type; 33 @property(nonatomic, assign) BOOL isSelected; 34 35 @end 36 37 38 39 40 41 for (NSInteger i = 0; i<[self.releaseVM.houseTypes[indexPath.section] count]; i++) { 42 ATTypeCellViewModel *typeVM = self.releaseVM.houseTypes[indexPath.section][i]; 43 if (i != indexPath.row) { 44 typeVM.isSelected = FALSE; 45 // typeVM.type = @"111"; 46 // self.releaseVM.isSelectTypes[i] = @"QQQQ"; 47 // a = @"QQQQ"; 48 // self.releaseVM.isSelectTypes[i] = a; 49 }else { 50 typeVM.isSelected = YES; 51 ATTypeCellViewModel *ppppp = typeVM; 52 } 53 } 54 55 问题:self.releaseVM.houseTypes 值不变? 56 不明白
以上是关于未解决问题:的主要内容,如果未能解决你的问题,请参考以下文章