이 올바른 iOS의 7, 8, 9에 대한 답변 및 10 : 왜
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
[[picker navigationBar] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor blackColor] forKey:NSForegroundColorAttributeName]];
여기
인 :
수표 상기 응답 표시 (기준 마니)가 [UINavigationBar appearance]
을 참조하는 것은 올바르지 않습니다. 이는 UINavigationBar
에있는 제목의 색상이 변경되어 MFMailComposeViewController
도 표시되기 때문에 원하지 않는 효과였습니다. 내 코드처럼 피커의 NavBar를 구체적으로 가져와야합니다.
설정 tintColor
도 제목이 아닌 버튼의 색상을 설정하므로 iOS 7 (Mani의 다른 답변) 설정은 올바르지 않습니다.
또한 UITextAttributeTextColor
은 (는) 더 이상 지원되지 않습니다. NSForegroundColorAttributeName
을 사용하십시오.
이 링크를 참조하십시오 : http://stackoverflow.com/questions/1634417/changing-mfmailcomponentsviewcontrollers-toolbar-color – Dee