Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6557539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:05:11+00:00 2026-05-25T13:05:11+00:00

In my core data db, every item has a string id which is an

  • 0

In my core data db, every item has a string id which is an url to indicate whom this item belongs to.

Now I have an array which contains, say, 200 owner urls (200 is just an example, it is dynamic in the app). I wish to fetch all items that belong to the 200 own urls.

If only 1 owner url, I know how to write:

[NSPredicate predicateWithFormat:@"(ownerUrl == %@)", url]

What about an array of owner urls, say 200?

by the way, the core data I am using is sql. I think sql will ignore “IN” in NSPredicate?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:05:12+00:00Added an answer on May 25, 2026 at 1:05 pm

    Try this :

    NSSet *urls = [NSSet setWithObjects:@"url1", @"url2", @"url3", nil];
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K IN %@", @"ownerUrl", urls];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone app up on the store which uses core data. Now,
I have 2 core data entities: Question, and QuestionType. Every Question has exactly 1
In my core data model I have a Person entity that has a to
I have a app that works with Core Data. The data has a field
i have this code that passes the core data context to one of the
I have two Core Data entities: Parent and Child . Parent has to-many relationship
In my Core Data managed object model, I have an entity Foo with a
I'm using core data in my app. I have two entities that are related:
This is the Core Data object model I am working with (I am a
I'm working on an application backed by Core Data. Right now, I'm saving the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.