我是新來的ios。 我有一個NSMutableArray的NSDictionary。 如何過濾陣列? //sections is a NSMutableArray of NSMutableDictionary elements
[sections addObject:getName];
NSSortDescriptor *sortDescriptorFirst = [NSSortDescri
匹配我使用NSRegularExpression來解壓縮字符串。將@「A」轉換爲@「, - 1」和@「B」轉換爲@「, - 2」以將其解壓縮。 問題是,如果只分別應用@"A" to @",-1" or @"B" to @",-2",它工作正常。但是當應用於for循環時,我發現enumerateMatchesInString:options:range:usingBlock在搜索@"B"時未找到匹配