Search code examples
iosswiftwhatsappcncontactviewcontroller

How to create add new contacts in iOS like whatsapp


I want to show an add new contact screen exactly the same as Whatsapp. I tried the default ios contact view controller CNContactViewController. But it is not the same as Whatsapp. Please give me a solution for this. enter image description here


Solution

  • You could use the Contacts Framework to create the new contact in code, thus allowing you to build your own ViewController from scratch:

    https://developer.apple.com/documentation/contacts