Objective c 永久编码,在控制台中只是一段时间的连续字符串

Objective c 永久编码,在控制台中只是一段时间的连续字符串,objective-c,xcode,image,email,smtp,Objective C,Xcode,Image,Email,Smtp,我使用SKPSSMTP在后台发送电子邮件。我必须提到这一点。我在电子邮件中附上4张图片,下面是我用来附上图片的代码。我正在成功接收电子邮件,但 我仍然得到永远的编码,这只是控制台中的一个连续字符串,我的xcode没有响应,有时我得到请求绑定错误,我的应用程序崩溃 用于附加图像的代码: NSData *vcfDataimg_1 = nil,*vcfDataimg_2= nil; for (int i=0; i<directoryContent.count; i++) {

我使用SKPSSMTP在后台发送电子邮件。我必须提到这一点。我在电子邮件中附上4张图片,下面是我用来附上图片的代码。我正在成功接收电子邮件,但
我仍然得到永远的编码,这只是控制台中的一个连续字符串,我的xcode没有响应,有时我得到请求绑定错误,我的应用程序崩溃

用于附加图像的代码:

 NSData *vcfDataimg_1 = nil,*vcfDataimg_2= nil;

    for (int i=0; i<directoryContent.count; i++) {
        NSString *imageName=[appDel.arrdelBrushImages objectAtIndex:i];
        NSString *vcfPathimg=[dataPath stringByAppendingPathComponent:imageName];
        if (i == 0) {
            vcfDataimg_1 = [NSData dataWithContentsOfFile:vcfPathimg];
            vcfDataimg_1 = [NSDictionary dictionaryWithObjectsAndKeys:@"inline;\r\n\tx-unix-mode=0644;\r\n\tname=\"black.png\"",kSKPSMTPPartContentTypeKey,
                            @"attachment;\r\n\tfilename=\"black.png\"",kSKPSMTPPartContentDispositionKey,[vcfDataimg_1 encodeBase64ForData],kSKPSMTPPartMessageKey,@"base64",kSKPSMTPPartContentTransferEncodingKey,nil];
        }
        else {
            vcfDataimg_2 = [NSData dataWithContentsOfFile:vcfPathimg];
            vcfDataimg_2 = [NSDictionary dictionaryWithObjectsAndKeys:@"inline;\r\n\tx-unix-mode=0644;\r\n\tname=\"red.png\"",kSKPSMTPPartContentTypeKey,
                            @"attachment;\r\n\tfilename=\"red.png\"",kSKPSMTPPartContentDispositionKey,[vcfDataimg_2 encodeBase64ForData],kSKPSMTPPartMessageKey,@"base64",kSKPSMTPPartContentTransferEncodingKey,nil];
        }
    }
    testMsg.parts = [NSArray arrayWithObjects:plainPart,vcfDataimg_1,vcfDataimg_2, nil];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        [testMsg send];
NSData*vcfDataimg_1=nil,*vcfDataimg_2=nil;

对于(int i=0;iHello@Andrey Chernukha),请提供帮助