cell
에 사용자가 클릭 한 후 내가 코드의 일부 후에이 작업을 수행 :맞춤 UITableView 클래스에서 dismissModalViewControllerAnimated?
[self.window.rootViewController presentModalViewController:mailer animated:YES];
을 그가 버튼을 취소하거나이 법에 보내 히트 다음 때
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
[[((UIViewController *)(self.superview.superclass)) presentedViewController] dismissModalViewControllerAnimated:NO];
}
하지만 내 응용 프로그램 충돌을 밖으로 이동합니다. 당신은 VC에서 해제하려는 경우
012-12-17 18:52:09.243 testapp[8293:15203] Mail cancelled: you cancelled the operation and no email message was queued
2012-12-17 18:52:09.243 testapp[8293:15203] +[UIResponder presentedViewController]: unrecognized selector sent to class 0xbb5db0
2012-12-17 18:52:09.244 testapp[8293:15203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIResponder presentedViewController]: unrecognized selector sent to class 0xbb5db0'
*** First throw call stack:
(0x1ba6022 0x1688cd6 0x1ba7aad 0x1b0ced0 0x1b0ccb2 0x4e466 0xa99bf 0xac64f 0xa63f2 0x8d05af 0x1ba7e99 0x50f14e 0x50f0e6 0x5b5ade 0x5b5fa7 0x5b5266 0x5343c0 0x5345e6 0x51adc4 0x50e634 0x1d39ef5 0x1b7a195 0x1adeff2 0x1add8da 0x1adcd84 0x1adcc9b 0x1d387d8 0x1d3888a 0x50c626 0x370d 0x26c5 0x1)
오류 또는 경고? – vikingosegundo
빌드가 완료되었습니다. 하지만 언제 응용 프로그램을 실행하고 충돌을 닫으 시도하십시오 – Omarj
@ Mindaugas ???? – Omarj