What about this mailto: openURL might be causing a this malloc crash?

前端 未结 2 1065
慢半拍i
慢半拍i 2021-01-27 17:25

I\'m using openURL to send an email w/some links. The function looks like this:

//
+ (void) sendEmail:(NSString *) subject withBody:(NSString *)body {
 NSString          


        
相关标签:
2条回答
  • 2021-01-27 18:12
    NSString *mailString = [NSString stringWithFormat:...
    

    already returns autoreleased string - you must not sent any autorelease messages to it

    0 讨论(0)
  • 2021-01-27 18:19

    Use NSZombieEnabled to debug as I described in this answer.

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