ios - CoreData 谓词 @"nameOfEntity ==[c] %@"
<p><p>我得到了这个使用 coredata 作为持久存储的旧项目。问题是它有这种用于获取实体的谓词:</p>
<pre><code>NSPredicate * predicate = %@", entityName];
</code></pre>
<p>我在这个谓词中找不到这个 所指的内容。</p>
<p>谁能启发我进入这个领域。我到处搜索。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>表示不区分大小写。 <code>Name</code>、<code>name</code>、<code>NAME</code> 都将被检测为相同。</p>
<blockquote>
<p>String comparisons are by default case and diacritic sensitive. You can modify an operator using the key characters c and d within square braces to specify case and diacritic insensitivity respectively, for example <code>firstName BEGINSWITH $FIRST_NAME.</code></p>
</blockquote>
<p> <a href="https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html#//apple_ref/doc/uid/TP40001795-215868" rel="noreferrer noopener nofollow">source</a> </p></p>
<p style="font-size: 20px;">关于ios - CoreData 谓词 @"nameOfEntity == %@",我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/25302347/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/25302347/
</a>
</p>
页:
[1]