MFMailComposeViewController
이 변경된 것을 알고 있지만 위험을 감수하고 있습니다. 는 좀 그런MFMailComposeViewController의 제목 변경
[self presentModalViewController:controller animated:YES]; // Existing line
[[[[controller viewControllers] lastObject] navigationItem] setTitle:@"SomethingElse"];
및
[[[[(MFMailComposeViewController*)vc navigationBar] items] objectAtIndex:0] setTitle:@" SomethingElse"];
로 생각하지만 이상한 것은 제목이 "SOMETHINGELSE는"이초 등에이라는 것이다을 발견하고이 설정되어있는 주제에 반환 후. 다른 솔루션도 시도했지만 동일한 결과를 보였습니다.
나는 SHK (ShareKit)를 사용하여 소셜에 연결합니다.
if ([vc respondsToSelector:@selector(modalPresentationStyle)])
vc.modalPresentationStyle = [SHK modalPresentationStyle];
if ([vc respondsToSelector:@selector(modalTransitionStyle)])
vc.modalTransitionStyle = [SHK modalTransitionStyle];
[topViewController presentModalViewController:vc animated:YES];
[[[[(MFMailComposeViewController*)vc navigationBar] items] objectAtIndex:0] setTitle:@" "];
[(UINavigationController *)vc navigationBar].barStyle =
[(UINavigationController *)vc toolbar].barStyle = [SHK barStyle];
self.currentView = vc;
확인 SO 답장을 http://stackoverflow.com/questions/1737848/change-title-of-mfmailcomposeviewcontroller – Jhaliya