Implement to get fetch the data from Contacts and implement the search in firstName,LastName and phone numbers

Solution:

You cannot be able to search the firstName,LastName and phone number in contacts List because it is a dictionary with multitypes.So predicate will not be possible.So you can get the contact and save it in a dictionary with firstName and LastName as two keys and phone number as one key with concatenating the all phonenumbers in a single contact as a string and implement the search in the dictionary will works good.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift