0
我正在使用下面的代码,它提出了一个警告。该代码确实显示正确的图像 - 但我怎样才能摆脱警告?NSURL可能不会响应警告+ encryptedFileWithPath
NSString *indexPath = [[NSBundle mainBundle] pathForResource:name ofType:@"png" inDirectory:@"tunes"];
NSURL *url = [NSURL encryptedFileURLWithPath:indexPath];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *image = [[UIImage alloc] initWithData:data];
警告 'NSURL可能不+ encryptedFileWithPath回应:'
正确的两个计数 - 伟大的文章。忘了#import“NSURL + EncryptedFileURLProtocol.h”。再次感谢你的帮助。 – Magnus
请标记为答案,如果这满足您的问题。 – Sam