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

前端 未结 2 1069
慢半拍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

提交回复
热议问题