次のコードがあります。
//NSMutableArray sections - contains some data;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[a-c]" options:0 error:NULL];
[sections enumerateObjectsUsingBlock:^(NSString * str, NSUInteger idx, BOOL * stop) {
NSTextCheckingResult *match = [regex firstMatchInString:str options:0 range:NSMakeRange(0, [str length])];
if (match) {
[filteredList addObject:match];
}
}];
この場合、セクションはNSMutableArray.
NSMutableArrayセクションがof になる場合、コードをどのように変更すればよいNSMutableArraysですか?- 現在セクションが である場合、
NSMutableArrayどのようにセクションの を宣言できNSMutableArrayますNSMutableArraysか?