Bryan
Bryan

Reputation: 3

How to programmatically call ABPersonViewController edit view after loading ABPersonViewController

This question is already asked but was still not answered. (here)

I have made a UIViewController that looks like ABPersonViewController view with some added buttons.

I also have the edit button at the right navigation bar that already have a function of calling the ABPersonViewController, I know it is possible to programmatically load the edit view of it but i just can't find the right code. (Viber does this)

Any help would be appreciated. Thanks :)

Upvotes: 0

Views: 886

Answers (1)

Flipper
Flipper

Reputation: 2609

If the Edit button is just the standard

self.editButtonItem

Then that means that you probably have a UITableView and inside of the viewWillAppear method you can just call

[self setEditing:YES];

However, if the code has an Edit method, then just call that method from viewWillAppear.

Upvotes: 1

Related Questions