2013-09-24 2 views

Antwort

13

Wenn Sie mit einem globalen Wandel ok sind, können Sie dieses in AppDelegate:

NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], UITextAttributeTextColor, nil]; 
[[UINavigationBar appearance] setTitleTextAttributes:attributes]; 
+3

Warum die alte Syntax? '@ {UITextAttributeTextColor: [UIColor whiteColor]}' –

+1

UITextAttributeTextColor scheint in iOS 7 veraltet zu sein –

+10

Verwenden Sie für iOS 7 usw. NSForegroundColorAttributeName anstelle von UITextAttributeTextColor. –

Verwandte Themen