-1

I have my Storyboard set up in my Xcode project, I have created a new ABPersonViewController and set the segue to it.

Image 1

However, I'm running into a problem that when I make the segue, the view is completely black:

Image 2

I understand there may be solutions with wrapper classes, which is not what I'm looking for; I feel as though there must be some supported way to do this.

Is there a way to segue to "predefined" view controllers from frameworks like AddressBookUI?

esqew
  • 42,425
  • 27
  • 92
  • 132

1 Answers1

0

To use ABPersonViewController, you instantiate it, set its displayedPerson and personViewDelegate, and push it onto an existing navigation controller's stack. Here's working downloadable example code from my book:

https://github.com/mattneub/Programming-iOS-Book-Examples/blob/master/bk2ch18p713addressBook/ch31p973addressBook/ViewController.m

matt
  • 515,959
  • 87
  • 875
  • 1,141