presentViewController未顯示郵件模式視圖控制器。我已經從當前的視圖控制器更改爲presentViewController,但它沒有提供任何錯誤,也沒有呈現模態視圖。如何解決這個問題?presentViewController未顯示郵件編輯器表
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];
請提供您迄今爲止所做的工作的代碼。幫助我們幫助你 – Popeye 2013-03-20 11:27:41
我無法編輯問題,因爲stackoverflow有5點或一些限制編輯..請幫助我並編輯。 – user2186457 2013-03-20 11:35:14
那麼你可以通過編輯添加你的代碼。 – Popeye 2013-03-20 11:39:28