전자 메일의 제목 (이 경우 "내 제목")으로 설정된 탐색 모음의 제목을 변경할 수없는 것 같습니다. 이 경우에는 제목을 없애고 싶습니다. 빈 문자열을 제목으로 사용하거나 제목을 보이지 않게 렌더링하고 싶습니다. 유MFMailComposeViewController의 탐색 모음 제목 변경
[[[[controller viewControllers] lastObject] navigationItem] setTitle:@"Set the title"];
를 추가 ModalViewController
[self presentModalViewController:controller animated:YES]; // Existing line
을 제시
MFMailComposeViewController *mfViewController = [[MFMailComposeViewController alloc] init];
mfViewController.mailComposeDelegate = self;
[mfViewController setSubject:[NSString stringWithFormat:@"My Subject"]];
[mfViewController setMessageBody:[self emailBody] isHTML:NO];
[mfViewController setTitle:@""];
그것은 0.5 초 동안 작동하고, 망할 컨트롤러가 제목을 다시 추가합니다. – Fr4ncis
내 대답에 이유를 추가했습니다. –