MFMailComposeViewController收件人隐藏在发件人栏后面

时间:2018-08-16 04:56:06

标签: ios uiviewcontroller

我的应用程序中装有MFMailComposeViewController,收件人隐藏在发件人栏后面。如何使其可见并正确显示?

enter image description here

- (void)bottomBtnClick:(UIButton *)sender
{
        NSString *emailTitle = @"Feedback";
        // Email Content
        NSString *messageBody = [NSString stringWithFormat:@"Hi Support,\rI have some feedback here:-\r"];
        // To address
        NSArray *toRecipents = [NSArray arrayWithObject:@"admin@xxx.com"];

        MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init];

        mc.mailComposeDelegate = self;
        [mc setSubject:emailTitle];
        [mc setMessageBody:messageBody isHTML:NO];
        [mc setToRecipients:toRecipents];

        // Present mail view controller on screen
        [self presentViewController:mc animated:YES completion:NULL];

}

0 个答案:

没有答案