0

こんにちは、私の iPhone アプリケーションでは、ABPeoplePickerNavigationController で barButtonItems を設定する必要があります。iOS 6 では問題なく動作します。

-(void) manageContacts
{
    peopleNavigationController = [[PeoplePickerNavigationController alloc] init];
    peopleNavigationController.peoplePickerDelegate = self;
    [peopleNavigationController.navigationBar setBarStyle:UIBarStyleBlack];

    peopleNavigationController.delegate = self;
    peopleNavigationController.topViewController.navigationItem.leftBarButtonItem =
    [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"back",nil)
                                     style:UIBarButtonItemStyleBordered
                                    target:self
                                    action:@selector(pressBack)];
    peopleNavigationController.topViewController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addPerson)];

    [self.navigationController presentModalViewController:peopleNavigationController animated:YES];


}

しかし、iOS 7にはデフォルトのボタンがあります。どうすればこれを修正できますか?

4

1 に答える 1