すべてのナビゲーション バーに一貫したタイトルの色を設定したかったのです。
NSDictionary *titleAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor],
NSFontAttributeName: MY_FONT_HERE};
[[UINavigationBar appearance] setTitleTextAttributes:titleAttributes];
このコードは iOS6 では機能しますが、ios7 ではクラッシュします。
クラッシュ メッセージは奇妙です。
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '- [__NSCFConstantString pointSize]: unrecognized selector sent to instance 0x107c34'