【发布时间】:2024-01-15 08:41:01
【问题描述】:
我正在使用以下代码,它会出现警告。代码确实显示了正确的图像 - 但我怎样才能摆脱警告?
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:'
【问题讨论】:
标签: ios uiimage nsurl encryption