CNContactPickerViewController with UIToolbar

How to implement the same contact control as in iOS Apple Maps?

As you can see in the pictures, in the "Maps" application you can switch between your favorite places and your contacts. I want to switch between a collector and some user table without firing animation and with general control, for example UISegmentedControl.

I have no problems with presentation CNContactPickerViewControllerand implementation UISegmentedControl. I have a problem adding a toolbar to CNContactPickerViewController.

  • I tried to push it in UINavigationControllerwithout success.

  • I tried to add UIToolbar, but CNContactPickerViewController does not have UINavigationController.

  • I also tried adding it to subviews and childViewControllers

Documentation says nothing about how to use it. This page states:

Instances of the CNContactPickerViewController cannot be pushed onto the stack.

Any tips are welcome :)

enter image description here enter image description here

+4
source share
1 answer

I am sure that CNContactPickerViewControllerit is very safe and works in a separate process. I am trying to find documentation to support this theory, but I think the reason is that there is no API that allows developers to increase the look.

, Apple Maps, , ... Apple API. - , .

+1

Source: https://habr.com/ru/post/1615138/


All Articles