我正在尝试将用户从我的原生应用程序发送到邮件应用程序。我希望在邮件正文中嵌入一个标记。我知道这是可能的,因为'LOL Cats'应用程序可以做到这一点。我一直在尝试没有成功:
NSString *url1 = [NSString stringWithFormat:@"mailto:email@email.com?subject=Check%20Out%20This%20Faux%20Screen&body=<img%20src=\"http://www.sample.com/FauxFoneServer/screenShot/getScreenByID?cur=%@\"/>The%20awesome%20person%20who%20sent%20you%20this%20email%20thinks%20you%20should%20visit%20http://www.fauxscreen.com"
,[ScreenShotsAppDelegate sharedDelegate].viewController.curImage.imageID];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url1]];
答案 0 :(得分:1)
调用openURL会发生什么?
您可以尝试编码引号(%22),小于(%3C)和大于(%3E)字符。