How do I implement same contact picker as in iOS Apple Maps?
As you can see from pictures, in Maps app you can switch between favourites places and your contacts. I want switching between picker and some custom table without dismissal animation and with common control like UISegmentedControl
.
I have no problem with presenting CNContactPickerViewController
nor with implementing UISegmentedControl
. I have problem with adding toolbar to CNContactPickerViewController
.
I've tried to push it into my
UINavigationController
with no success.I've tried to add
UIToolbar
butCNContactPickerViewController
doesn't haveUINavigationController
.I also tried to add it to subviews and
childViewControllers
Documentation doesn't say anything how to use it. This page claims:
Instances of the CNContactPickerViewController cannot be pushed to the stack.
Any advice is appreciated :)