How can I present a modal view controller after selecting a contact?
Posted
by barfoon
on Stack Overflow
See other posts from Stack Overflow
or by barfoon
Published on 2010-03-12T20:23:20Z
Indexed on
2010/03/12
20:47 UTC
Read the original article
Hit count: 284
Hey everyone,
I'm trying to present a modal view controller after selecting a contact and it doesnt seem to be working.
In my -
(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person
method, I dismiss peoplePicker, create an instance of my new view controller, then present it with
[self.navigationController presentModalViewController:newController animated:YES];
and it doesnt work. However if i PUSH the view controller it works with this code:
[self.navigationController pushViewController:newController animated:YES];
How can I accomplish this?
Thank you,
© Stack Overflow or respective owner