未解决问题:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
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 不明白
解决方案:见AnnTenants项目中的ATReleaseHousingController类中的数组;
问题二:误将 TARGETS 下的项目文件删除了,导致出现 “The run destination iPhone 5s is not valid for Running the scheme "项目名"”不能运行.
如何恢复?
问题二:“The plist file at path `/Users/huanggang/Desktop/AnnTenants/AnnTenants.xcode/project.pbxproj' doesn't exist.”
猜测原因:可能我设置忽略文件把 project.pbxproj 忽略了,这个文件是组织文件结构的,不能忽略的。可是我的 git 忽略的文件没有这个,不知怎么回事。