Issue when using MFMailComposeViewController

后端 未结 3 1000
南方客
南方客 2020-12-28 14:15

I have a tricky problem. In one of my app, with over 150.000 downloads... I have a problem which seldom occurs and which I can\'t seem to figure out.

The problem is

相关标签:
3条回答
  • 2020-12-28 14:54

    Not sure if you have fixed the problem, but I have met it recently in my project.

    A workaround I did was to allocate and initiate MFMailComposeViewController in an earlier stage, and hold it in one static variable, whenever it's needed, get the static MFMailComposeViewController instance and present it.

    It seems working for me, hope it will work for you, too.

    0 讨论(0)
  • 2020-12-28 14:59

    I have exactly the same issue. I think I have nailed it down to the time it takes to formulate the message body string.

    Content from comment

     //Message Body 
    NSString *msgBody = [NSString stringWithFormat:
                            @"I noticed these results in pocketKPI. The %@ was at %@ which is a variance of %@(or %@) to the target defined as %@. When you have some time let's discuss.", 
                            self.itemToView.kpiName, 
                            [DFSKpiFormatter formatNumberAsString:self.itemToView.currentValue], [self.itemToView determineVarianceLabelText],
                            [self.itemToView determineVariancePercentLabelText], 
                            [DFSKpiFormatter formatNumberAsString:self.itemToView.targetValue]];
    
    0 讨论(0)
  • 2020-12-28 15:13

    a had the same issue, and this fixe helped me:

    https://twitter.com/christian_beer/statuses/321295533077565440

    "@nathangaskin well… that was long ago :) But if I remember correctly, it worked after I removed the custom fonts from my UIAppearance code"

    It works fine for me.

    Also, second option is to simply wrap displaying call into

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
    

    block

    0 讨论(0)
提交回复
热议问题