2019-09-11から1日間の記事一覧

Swift CoreData 複数のpredicate条件の指定とIN句の書き方

概要 CoreDataのpredicateに複数条件の指定を行う。 ユーザの入力等によって動的に条件を生成する場合に使用する。 実装 NSCompoundPredicate(andPredicateWithSubpredicates: [NSPredicate])をpredicateに渡すことで複数の条件を渡すことができる。andPredi…