tags:

views:

27

answers:

0

I am using the MFMailComposeViewController Controller like this:

MFMailComposeViewController *picker1 = [[MFMailComposeViewController alloc] init];
 picker1.mailComposeDelegate = self;
 [picker1 setSubject:@"I have a pencil for you"];
 UIImage *roboPic = [UIImage imageNamed:@"RobotWithPencil.jpg"];
 NSData *imageData = UIImageJPEGRepresentation(roboPic, 1);
 [picker addAttachmentData:imageData mimeType:@"image/jpg" fileName:@"RobotWithPencil.jpg"];
 NSString *emailBody = @"This is a cool image of a robot I found.  Check it out!";
 [picker1 setMessageBody:emailBody isHTML:YES];
 picker1.navigationBar.barStyle = UIBarStyleBlack; 
 [self presentModalViewController:picker1 animated:YES];
 [picker1 release];

When I press the "Cancel" button I don't see the panel with "Draft", "Save Draft" and "Cancel" buttons, the screen is locked/frozen but the panel with buttons mentioned above doesn't appear.

I will be glad to get any assistance.

Thanks in advance Moshe