2017-01-15 1 views
4

iOS10에서 항목을 공유하는 데 UIActivityViewController를 사용하고 있습니다. 메일 옵션을 탭하면 메일 작성기가 팝업되지만 탐색 막대와 탐색 막대의 취소 및 보내기 단추는 파란색으로되어 읽기가 매우 어려워서 색상을 변경하고 싶습니다. SMS 공유에서도 마찬가지입니다. 나는이iOS10의 UIActivityViewController에서 제시 한 경우 메일 작성자의 보내기 및 취소 버튼의 텍스트 색상을 설정할 수 없습니다.

[[[controller navigationController] navigationBar] setTintColor:[UIColor blackColor]]; 

[[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class]]] setTintColor:[UIColor blackColor]]; 

[[UINavigationBar appearance] setTintColor:[UIColor blackColor]]; 

[[UINavigationBar appearance] setBarTintColor:[UIColor blackColor]]; 

을 시도했지만 아무것도 작동하지 않습니다. 나는 심지어 UIActivityViewController의 서브 클래스를 시도했지만, - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion 메소드는 결코 호출되지 않았습니다.
다음에해야 할 일을 알지 못합니다. 어떤 도움을 주셔서 감사합니다.

답변

0
[[UIBarButtonItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]} forState:UIControlStateNormal];