Open SmallWeed opened 6 years ago
close , 问题已解决
需要同时兼容iOS 10,iOS 11
if (IS_IOS11ORLATER)
{
NSString *dataStr = [[NSString alloc]initWithData:resumeData encoding:NSUTF8StringEncoding];
NSString *newStr = [self cleanResumeDataWithString:dataStr];
resumeData = [newStr dataUsingEncoding:NSUTF8StringEncoding];
}
else if (IS_IOS10ORLATER) {
NSData *cData = correctResumeData(resumeData);
resumeData = cData?cData:resumeData;
}
NSURLSessionDownloadTask *task = [self downloadTaskWithResumeData:resumeData];
NSMutableDictionary *resumeDic = getResumeDictionary(resumeData);
我在原来修改过的 旧版本上,替换了最新的NSURLSession+TYCorrectedResumeData 但是在downloadTaskWithResumeData 还是出现了崩溃