ios - ABPeoplePickerNavigationController transparent top bar -


I use standard ABPeoplePickerNavigationController and when I transparent top bar that I saw was dragged table with contacts. I could not solve it looks awesome

I [UIColor whiteColor] everything I tried to set to reach :. NavigationBar, all subviews of ABPeoplePickerNavigationController and topViewController it all subviews. I tried to set the styles in different times in the navigation bar, nothing to help.

TRANSPERENT top

Here's the code

< Pre> @interfaceMNFindClientVC () & lt; ABPeoplePickerNavigationControllerDelegate & gt; @protecti (nonatomic, strong) epipilipikaran navigation controller * addressbook controller; - (zero) openPhoneBook; @end @implementation MNFindClientVC - (zero) viewDidoadload [[Super Viewedload]; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage: [UIImage imageNamed: @ "Phonebook"] style: UIBarButtonItemStyleBordered goal: self action: @selector (openPhoneBook)]; Self.addressBookController = [[ABPeoplePickerNavigationController alloc] init]; Self.addressBookController.peoplePickerDelegate = self; } - (void) Opanfonbuk {[self current ViewController: self.addressBookController Animated: Yes absolute zero]; } @end

Sorry for my english Thanksgiving :)

I had the same problem when using a UINavigationBar that was transparent. You can resolve this problem by disabling the translucency of UINavigationBar in an ABPeoplePickerNavigationController with the following code (tested in iOS 8):

  _addressBookController = [[ABPeoplePickerNavigationController alloc] Init]; [_addressBook Controller Set: Peoples Picture Delegate: Self]; [[UINavigationBar presence when inserted: [ABPeoplePickerNavigationController class], zero] setTranslucent: no]; [Self-current ViewController: _addressBook Animator Controller: Yes Completed: Zero];  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -