【问题标题】:MFMailComposeViewController View flickering issueMFMailComposeViewController 视图闪烁问题
【发布时间】:2015-07-28 13:18:37
【问题描述】:

当我显示 MFMailComposeViewController 时,它查看闪烁(首先进入导航栏,然后下降到正确位置)首先看起来像“到”字段进入导航栏然后出来。我正在使用以下代码。`
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)`

【问题讨论】:

    标签: ios swift mfmailcomposeviewcontroller


    【解决方案1】:

    尝试将此添加到您的视图控制器:

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

    【讨论】:

      猜你喜欢
      • 2020-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-25
      • 1970-01-01
      • 2015-01-04
      • 2016-03-06
      • 2012-05-12
      相关资源
      最近更新 更多