[IOS] - ABUnknownPersonViewController Back Button, 전화번호부 저장 View 백버튼

IOS ( Object-C ) 2014. 9. 12. 09:46
반응형

@try {

    ABUnknownPersonViewController *abView = [[ABUnknownPersonViewController alloc] init];

    UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:abView];


    abView.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]

                                             initWithBarButtonSystemItem:UIBarButtonSystemItemCancel

                                             target:target

                                             action:@selector(setCloseAddressView)];


    abView.unknownPersonViewDelegate = target;

    abView.allowsAddingToAddressBook = YES;

    abView.displayedPerson           = newPerson;


    [target presentModalViewController:nc animated:YES];

  } @catch(NSException *exception) {

    NSLog(@"Exception : %@", exception);

  }

반응형
: