Note that there are some explanatory texts on larger screens.

plurals
  1. POerror: address doesn't contain a section that points to a section in a object file
    primarykey
    data
    text
    <p>Hi i have searched here on the forum but no help found so i am posting it new. Here is the scenario, i am creating a mfmailcomposeviewcontroller in the main rootviewcontroller, i am displaying it by calling presentviewcontroller but when it is dismissed i get this error :</p> <pre><code>error: address doesn't contain a section that points to a section in a object file </code></pre> <p>The code i am using is given below: </p> <pre><code>-(void) mailButtonTapped { if ([MFMailComposeViewController canSendMail]) { mailViewController_ = [[MFMailComposeViewController alloc] init]; mailViewController_.mailComposeDelegate = self; [mailViewController_ setSubject:@"Try ..."]; [mailViewController_ setMessageBody:@"Hey I just tried ..." isHTML:NO]; NSData *videoData = [NSData dataWithContentsOfURL:movieURL_]; [mailViewController_ addAttachmentData:videoData mimeType:@"video/quicktime" fileName:@"Video.mov"]; [self presentViewController:mailViewController_ animated:YES completion:nil]; } else { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Sharing Not Possible" message:@"Configure your mail to send the mail" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alertView show]; [alertView release]; } } -(void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { NSString *title = @"Email"; NSString *msg = nil; if (result == MFMailComposeResultFailed) msg = @"Unable to send, check your email settings"; else if (result == MFMailComposeResultSent) msg = @"Email Sent Successfully!"; else if (result == MFMailComposeResultCancelled || result == MFMailComposeResultSaved) msg = @"Sending Cancelled"; UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alertView show]; [alertView release]; [self dismissViewControllerAnimated:YES completion:nil]; </code></pre> <p>} </p> <p>After dismissing i receive the error:</p> <pre><code>error: address doesn't contain a section that points to a section in a object file </code></pre> <p>Please help me</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload