gpt4 book ai didi

ios - MFMailComposeViewController View 闪烁问题

转载 作者:行者123 更新时间:2023-11-30 14:11:57 25 4
gpt4 key购买 nike

当我显示 MFMailComposeViewController 时,它 View 闪烁(首先进入导航栏,然后下降到正确的位置)首先看起来像“收件人”字段进入导航栏,然后出来。我正在使用以下代码。`
self.resignFirstResponder() self.mailPicker = MFMailComposeViewController()

    self.mailPicker!.setToRecipients(self.mailer)
self.mailPicker!.setSubject("hello");
self.mailPicker!.setMessageBody("message text", isHTML: false);
self.mailPicker!.mailComposeDelegate = self;
self.mailPicker!.delegate = self

self.presentViewController(self.mailPicker!, animated: true, completion: nil)`

最佳答案

尝试将其添加到您的 View Controller :

- (void)viewDidAppear:(BOOL)animated {
[UINavigationBar appearance].translucent = NO;
[super viewDidAppear:animated];
}

- (void)viewWillDisappear:(BOOL)animated {
[UINavigationBar appearance].translucent = YES;
[super viewWillDisappear:animated];
}

关于ios - MFMailComposeViewController View 闪烁问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31677519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com