¡@

Home 

2014/10/15 ¤U¤È 10:11:14

iphone Programming Glossary: mailstring

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

http://stackoverflow.com/questions/3542252/what-about-this-mailto-openurl-might-be-causing-a-this-malloc-crash

an email w some links. The function looks like this void sendEmail NSString subject withBody NSString body NSString mailString NSString stringWithFormat @ mailto @ subject @ body @ subject stringByAddingPercentEscapesUsingEncoding NSASCIIStringEncoding.. NSASCIIStringEncoding UIApplication sharedApplication openURL NSURL URLWithString mailString mailString autorelease The code that calls this function looks like this AppNameAppDelegate sendEmail subjectLine withBody.. NSASCIIStringEncoding UIApplication sharedApplication openURL NSURL URLWithString mailString mailString autorelease The code that calls this function looks like this AppNameAppDelegate sendEmail subjectLine withBody bodyText..