를 탈위 솔루션 : hereABPeoplePickerNavigationController 탐색 barStyle BlackTranslucent 바 스타일로 레이아웃
코드 :
- (void)showPeoplePickerController
{
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
NSArray *displayedItems = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonPhoneProperty],
[NSNumber numberWithInt:kABPersonEmailProperty],
[NSNumber numberWithInt:kABPersonBirthdayProperty],[NSNumber numberWithInt:kABPersonAddressProperty],nil];
picker.displayedProperties = displayedItems;
picker.navigationBar.barStyle = UIBarStyleBlack;
// picker.navigationBar.translucent = YES; //uncommented for translucent bar
[self.navigationController presentModalViewController:picker animated:YES];
}
그러나 PeoplePicker에서 어떻게 변경합니까?
일부 코드 공유 ... ABPeoplePickerNavigationController 탐색 막대 스타일을 추가하는 방법 ... – Vishal
@Vishal : 내 편집을 참조하십시오. –