UITextAttributeTextColor 상수가 

iOS7 에서 deprecated 되었다.



iOS7 이상부터는 기존에 사용하던 UITextAttributeTextColor 상수를 NSForegroundColorAttributeName 상수로 교체하여 사용하면 간단히 수정이 된다.



아래 예제를 참고하자.


[iOS7]

 [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:
     @{UITextAttributeTextColor:[UIColor crediteraBackButtonColor],
       NSFontAttributeName: [UIFont proximaNovaRegularWithFontSize:16.0f]
       } forState:UIControlStateNormal];

[iOS8]

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:
     @{NSForegroundColorAttributeName:[UIColor crediteraBackButtonColor],
       NSFontAttributeName: [UIFont proximaNovaRegularWithFontSize:16.0f]
       } forState:UIControlStateNormal];