ios - ABPersonViewController does not have a navigationBar -


i writing application based on uiviewcontroller. not have navigation bar. application works addressbook. use 2 things.

the first (select people):

{     abpeoplepickernavigationcontroller *picker = [[abpeoplepickernavigationcontroller alloc] init];     picker.peoplepickerdelegate = self;     [self presentmodalviewcontroller:picker animated:yes]; } 

and second (select phone):

{     abpersonviewcontroller *picker = [[[abpersonviewcontroller alloc] init] autorelease];     picker.personviewdelegate = self;     picker.displayedperson = person;     picker.displayedproperties = [nsarray arraywithobjects: [nsnumber numberwithint:kabpersonphoneproperty], nil];     [self presentmodalviewcontroller:picker animated:yes]; } 

they called in different functions.

in first case when picker displayed, has navigation bar buttons: cancel etc.

in second case picker not have navigation bar. so, if select phone works if want return without making choice - not have button "back" or "cancel".

how can add navigation bar in second case?

i have tried add navigation controller , viewcontroller described below

how correctly use abpersonviewcontroller abpeoplepickernavigationcontroller view contact information?

this display navigatiob bar application crashes after this.

and

abpeoplepickernavigationcontroller, name suggests, navigation controller, has navigation bar. abpersonviewcontroller view controller, doesn't have navigation bar of own. can put instance of abpersonviewcontroller navigation controller , present that, have navigation bar , can add buttons need.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -