0
我不明白爲什麼導航條是不會在下面的代碼 這種事情在做加比取消按鈕以外的任何按鈕Viber的應用程序,以便有可能如何自定義欄按鈕項目到位取消添加到導航欄AddressBookUI應用像編輯
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.navigationBar.tintColor=[UIColor colorWithRed:91.0/256.0 green:72.0/256.0 blue:110.0/256.0 alpha:1.0];
//picker.navigationController.navigationBar.topItem.rightBarButtonItem = nil;
[picker.navigationBar setHidden:NO];
picker.peoplePickerDelegate = self;
// Display only a person's phone, email, and birthdate
NSArray *displayedItems = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonPhoneProperty],
[NSNumber numberWithInt:kABPersonEmailProperty],
[NSNumber numberWithInt:kABPersonBirthdayProperty], nil];
//picker.navigationBarHidden=TRUE;
picker.displayedProperties = displayedItems;
//UIBarButtonItem *addbutton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(AddContact)];
// picker.navigationController.navigationBar.topItem.rightBarButtonItem = addbutton;
[self presentModalViewController:picker animated:NO];
[picker release];
//[addbutton release];
有誰能夠幫忙,請