我有一个NSMutableArray
名为 comboData 我试图过滤掉它:
NSMutableArray * filteredVersion = [[NSMutableArray alloc] init];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"id >= %d AND id <= %d",1,7];
[filteredVersion setArray: [comboData filteredArrayUsingPredicate:
predicate]
];
我收到一条unknown selector
错误消息
[__NSCFNumber length]: unrecognized selector sent to instance 0xa966350
在第二行。我(重新)错过了什么?
[编辑]
comboData 如下(在调试区打印出来)
combo data (
{
id = 1;
label = "A";
name = '';
},
{
id = 2;
label = "B";
name = '';
},