0

ABPeoplePickerNavigationController用来获取所有联系人。我用 更改了 tintColor [[UIBarButtonItem appearanceWhenContainedIn:[ABPeoplePickerNavigationController class], nil] setTintColor:[UIColor whiteColor]];,但是当它推动时,backItem<Contacts仍然是蓝色的。

我试过这个

`[[UIBarButtonItem appearanceWhenContainedIn:[ABPeoplePickerNavigationController class], nil] setTintColor:[UIColor whiteColor]];`  
_picker.topViewController.navigationController.navigationBar.tintColor = [UIColor whiteColor];

和推之前

[[UIBarButtonItem appearanceWhenContainedIn:[ABPersonViewController class], nil] setTintColor:[UIColor whiteColor]];,

它没有用。如何改变它?

4

1 回答 1

0

尝试以下code..

- (IBAction)btnopencontact {

    [[UINavigationBar appearanceWhenContainedIn:[ABPeoplePickerNavigationController class], nil] setBarTintColor:[UIColor redColor]];
    ABPeoplePickerNavigationController *objPeoplePicker = [[ABPeoplePickerNavigationController alloc] init];
    [objPeoplePicker setPeoplePickerDelegate:self];
    [self presentViewController:objPeoplePicker animated:YES completion:nil];
}
于 2015-06-25T09:42:43.020 回答