Add a predicate to search for contacts in a specific group.
| Originator: | Michael.Fellows12 | ||
| Number: | rdar://27574578 | Date Originated: | 7/27/2016 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Enhancement | Reproducible: |
Summary: Currently, there's a predicate to get contacts in a group, but there's no call to get groups belonging to a contact. For instance, you can use this predicate to get contacts in a group. + (NSPredicate *)predicateForContactsInGroupWithIdentifier:(NSString *)groupIdentifier; But to get all the groups that a contact belongs to, you have search for each group and iterate over the results to determine a relationship. This can be very slow if a user has a meaningful number of groups. An example what this predicate could look like: + (NSPredicate *)predicateForGroupsForContactWithIdentifier:(NSString *)contactIdentifier; Steps to Reproduce: No steps to reproduce. Enhancement request. Expected Results: Developer makes one API call to get the groups belonging to a contact. Actual Results: User iterates over all groups determines if the contact belongs in that group. Version: iOS 10.0 and earlier Notes: Configuration: All iOS Devices Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!