presentViewController 未显示邮件模态视图控制器。我已从 presentmodalviewcontroller 更改为 presentViewController,但它没有给出任何错误,也没有显示 modalview。如何解决这个问题?
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc]init];
picker.mailComposeDelegate = self;
picker.navigationBar.tintColor = [UIColor colorWithHue:0.6 saturation:0.33 brightness:0.69 alpha:0];
NSString *lObjstringPtr = (NSString *)nil;
if(OPPORTUNITY_ENTITY_OBJECT_TYPE_CODE==m_cobjOwningGroup.m_cObjSelectedEntity.m_cObjectTypeCode) {
lObjstringPtr = [lObjstringPtr stringByAppendingFormat:@" To Follow Up"];
[picker setSubject:lObjstringPtr];
lObjstringPtr = (NSString *)nil;
} else
[picker setSubject:@""];
[picker setMessageBody:m_cObjemailBodyStrPtr isHTML:NO];
NSArray *toRecipients = [NSArray arrayWithObject:pEmailID];
[picker setToRecipients:toRecipients];
[self presentViewController:picker animated:YES completion:nil];
[picker release];