我陷入了困境:看看这张照片:
我有 soundPlayerVC 作为 pageContentVC 的 childeViewController。
soundPlayerVC 呈现邮件modalViewController:
- (IBAction)emailStory:(id)sender {
if ([MFMailComposeViewController canSendMail]) {
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
Anecdote *anecdote = (Anecdote *)story;
[picker setSubject:anecdote.name];
[picker setMessageBody:[SearchHandler removeMarkupsFromPageText:anecdote.detail] isHTML:NO];
[self.parentViewController presentViewController:picker animated:YES completion:nil];
}
#pragma mark - mail compose delegates
-(void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
[controller dismissViewControllerAnimated:YES completion:nil];
}
但是当我点击backButton时,popViewController不起作用,因为navigationController已经被清空了!!
这是怎么发生的?有人可以解释吗?