views:

51

answers:

0
-(IBAction)shareList:(id)sender
{
 MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
 controller.mailComposeDelegate = self;
 [controller setSubject:@"Share Shopping List "];
 [controller setMessageBody:@"Friend Shopping List Table" isHTML:NO];
 [self presentModalViewController:controller animated:YES];
 [controller release];
}


- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
 [self becomeFirstResponder];
 [self dismissModalViewControllerAnimated:YES];
}

implementing this but getting the some error

".objc_class_name_MFMailComposeViewController, referenced from:
Line Location Tool:0: symbol(s) not found
Line Location Tool:0: literal-pointer@__OBJC@__cls_refs@MFMailComposeViewController in FriendShoppingListViewController.o

I have also include the delegate of MFMailViewCompose. pLz tell me what's the prob ..