??????????????????
???????????? ???????[ 2015/1/8 13:59:18 ] ??????????????? ???????
???????????
????1>?????????
????1.?и????????????????????????????????????????????
????2.???????????????????????з???????????????????????????????????????????????????????????????????????????????????
????3.??ε???????????·?????????????????????????????????
????4.????·??????????????????????????????????????????
????5.??????????????С????·??????????????????
????6.????ж???????????????????????????????????????????????????????;??????????????????????????
????7.??????????????????????????????????
????2> ????????
????1.KVC????????
????1 - (instancetype) initWithDict:(NSDictionary *)Dict{
????2 //** ???????и?? */
????3 if (self = [super init]) {
????4 [self setValuesForKeysWithDictionary:Dict];
????5 }
????6 return self;
????7 }
????????setValuesForKeysWithDictionary:??????????????????е????????????????self????????У???????м??????????????м?????key???????????????????????????????????????????????????????????е???????????????????
????KVC?????????·??
????1 NSArray *array = [ persons valueForKeyPath: @“name”] KVC????·?????????????????????????????????????????????????????????
????2.???????????
????#pragma mark ??????
1 - (NSArray *)questions
2 {
3 if (_questions == nil) {
4 // 1.????plist
5 NSArray *tempArray = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"questions" ofType:@"plist"]];
6
7 // 2.???????????
8 NSMutableArray *arrayM = [NSMutableArray array];
9 for (NSDictionary *dict in tempArray) {
10 [arrayM addObject:[HZHquestions questionWithDict:dict]];
11 }
12 _questions = arrayM;
13 }
14 return _questions;
15 }
|
???????ж???????????plist????????for?????????????飬????????鱣?浽????????????С?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11