未解决问题:

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 不明白
View Code

 

以上是关于未解决问题:的主要内容,如果未能解决你的问题,请参考以下文章

片段内容未出现在手机上

由于未找到 ID 错误的视图,列表片段未出现

findViewById 未解决 [重复]

片段未附加到上下文

片段内部未调用 onActivityResult [重复]

回收站视图未显示在片段中