Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何将编码字符串数据设置为MFMessageComposeViewController_Objective C_Image_Sms_Mfmessagecomposeview - Fatal编程技术网

Objective c 如何将编码字符串数据设置为MFMessageComposeViewController

Objective c 如何将编码字符串数据设置为MFMessageComposeViewController,objective-c,image,sms,mfmessagecomposeview,Objective C,Image,Sms,Mfmessagecomposeview,我必须将以下字符串数据设置为(SMS)MFMessageComposeViewController的主体,有人能帮我获得解决方案吗 NSData *imageData = UIImagePNGRepresentation(image1); NSString* str = [[NSString alloc] initWithData:imageData encoding:NSUTF8StringEncoding]; 据我所知,问题是如何填写短信正文。对于这一点,有一个卓越的解决方案: 当然你想做

我必须将以下字符串数据设置为(SMS)MFMessageComposeViewController的主体,有人能帮我获得解决方案吗

NSData *imageData = UIImagePNGRepresentation(image1);
NSString* str = [[NSString alloc] initWithData:imageData encoding:NSUTF8StringEncoding];

据我所知,问题是如何填写短信正文。对于这一点,有一个卓越的解决方案:


当然

你想做什么?你有什么问题?