-
(NSData *)read:(long)offset
size:(long)size {
if (_data != nil) {
return [_data subdataWithRange:NSMakeRange(offset, (unsigned int)size)];
}
[_file seekToFileOffset:offset];
return [_file readDataOfLength:size];
}
控制台提示错误:-[OS_dispatch_data subdataWithRange:]: unrecognized selector sent to instance
这个应该不是七牛sdk修改的对象类型,可以检查下传入之前的data是否正常