2017-11-19 3 views
-1

Ich benutze CNContactViewController Formular Kontakt Framework zum Hinzufügen neuer lokaler Kontakt, aber nach der Präsentation dieser Ansicht Controller Navigationsleiste wird eine andere Farbe, die nicht in meiner App übereinstimmt. Unten ist der Code und ich füge Screenshot als Referenz hinzu. Bitte schlagen Sie mir eine Möglichkeit vor, diese Navigationsleiste anzupassen.CNContactViewController Navigationsleiste Hintergrundfarbe ist nicht mit meiner App

CNContactStore *store = [[CNContactStore alloc] init]; 
CNMutableContact *contact = [[CNMutableContact alloc] init]; 
CNContactViewController *controller = [CNContactViewController viewControllerForNewContact:contact]; 


controller.contactStore = store; 
controller.delegate = self; 

[self presentViewController:controller animated:YES completion:nil]; 

enter image description here

Antwort

0

Sie in AppDelegate didFinishLaunching die Bar Tönungsfarbe für alle Navigationsleiste Instanzen Ihrer App einstellen (CNContactViewController einschließlich) mit:

[[UINavigationBar appearance] setBarTintColor: [UIColor ... yourColor]]; 
Verwandte Themen