iOS How to Access Contacts and Address Book (Contacts Framework)

Опубликовано: 15 Октябрь 2024
на канале: CodeWithChris
11,633
178

Using Apple’s Contacts framework, we’ll be able to request permission from the user and access their contacts information in their address book. The code to do this is extremely simple and I’ll show you how in this video.

Timestamps:
00:00 Intro
00:26 Importing Contacts framework
02:30 Contacts store
08:21 Asking user for permission to access contacts
11:21 Fetching all contacts
11:59 Extracting contact information
16:37 Searching for contacts
20:25 User denied the request to access contacts

Reference Links:
Apple Documentation: Contacts
Apple Documentation: Contact Keys
Apple Documentation: CNContactFetchRequest

🚨 SPECIAL CWC+ OFFER FOR YOUTUBE:
https://cwc.to/youtubeoffer

MY FREE ONLINE COURSE:
⚡ How to make an app in 14 days - https://cwc.to/14days

CWC+ PROGRAM:
👩‍💻 All our courses in a learning path - https://cwc.to/plus

WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - https://cwc.to/newsletter

CONNECT:
🌍 Website - https://codewithchris.com
😺 GitHub - https://github.com/codewithchris
📸 Instagram -   / codewithchris  
🐦 Twitter -   / codewithchris  

ABOUT CODEWITHCHRIS:
Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! https://cwc.to/reviews

DID THESE LESSONS HELP YOU?
Please let me know! - https://feedback.codewithchris.com

ROADMAP:
https://roadmap.codewithchris.com