草庐IT

BEGINSWITH

全部标签

ios - NSPredicate 通过选择带有 Beginswith 的键来获取 NSDictionary 的值

我必须管理这个给定的丑陋的xml结构。我如何查询所有以“Key”开头/包含“Key”的Key-Tags?Xml结构:0001001500020022...0015002200020001......录制对象结构:@interfaceRec:NSObject@property(nonatomic,copy)NSMutableDictionary*content;@end这里是我的代码,可以在Key1上进行选择:predicateRecs=[NSPredicatepredicateWithFormat:@"content.%K==%@",@"Key1",@"0001"];[resultad