I was wondering if I can select objects based on a predicate with an array ... for example
code: [Challenger NSPredicateWithFormat: @ "id =% @", arrayOfID];
Will this work? If not, how can I do this?
The best
The correct predicate will be
[NSPredicate predicateWithFormat:@"id IN %@", arrayOfID];
Assuming arrayOfId contains objects of the same type as id (e.g. NSNumbers or NSStrings).
Yes of course you can do it.
It looks like you need a little grounding in Core Data. I found the following tutorial really useful for getting me off the ground with Core Data:
http://iphoneinaction.manning.com/iphone_in_action/2009/08/core-data-part-1-an-introduction.html
Source: https://habr.com/ru/post/1736455/More articles:failed to get the received list <> - genericsWhat is an effective way to calculate the nearest point? - objective-cFacebook Connect on Coldfusion 8 - coldfusionC #: - P / invoke signature - c ++Flex: menus, menus - flexIs it possible to inherit operator () in C ++? - c ++rails / mysql - how to disable ActiveRecord :: StatementInvalid error? - mysqlcall controller action from view - asp.net-mvcDocumentation for a client-server program with OpenSSL - cCall function by pressing div - javascriptAll Articles