NSPredicate *predicate3 = [NSPredicate predicateWithFormat:@"ANY %K.%K.%K CONTAINS[c] %@",@"Assets",@"TFloorAssets",@"AssetNo",strSearch];
NSArray *filteredPendingList = [NSMutableArray arrayWithArray:[arrOfAllAssetsCategory filteredArrayUsingPredicate:predicate3]];
我正在使用上述類型的代碼進行多級搜索?如何過濾多級數組來搜索字符串?
我可以知道downvote的原因嗎? –
這個謂詞是「Assets contains [c]%@ OR TFloorAssets contains [c]%@ OR AssetNo [c] contains%@」)。問題是如何做「ANY Assets.TFloorAssets.AssetNo contains [c]%@」。 – Willeke