iphone - NSPredicate 在数组中排除 "name"
<p><p>我有这个名称数组 (listedName),我想在 fbFriends 数组中过滤掉并删除它们。我该怎么做?看来我的条款不起作用。</p>
<pre><code>// add "names" to listed name array
NSMutableArray *aTempFriendList = [ init];
for (int n = 0; n < [ count]; n++) {
NSDictionary *dFriend = [ objectAtIndex:n];
NSString *sName = ;
;
}
NSPredicate *predicate = ;
;
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>应该是<code>@"not (name in %@)"</code>。</p></p>
<p style="font-size: 20px;">关于iphone - NSPredicate 在数组中排除"name",我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/9262984/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/9262984/
</a>
</p>
页:
[1]