2013-09-24 23 views

答えて

13

あなたはグローバルな変更でOKなら、あなたはあなたのアプリケーションのデリゲートでこれを置くことができます。

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

なぜ古い構文ですか? '@ {UITextAttributeTextColor:[UIColor whiteColor]}' –

+1

iOS 7でUITextAttributeTextColorが非推奨になっているようです。 –

+10

iOS 7などでは、UITextAttributeTextColorではなくNSForegroundColorAttributeNameを使用してください。 –

関連する問題