如何读取大文件
万能的Stackoverflow给出了答案
Use NSFileHandle: Seek to the offset where your data starts and start reading from there.
NSFileHandle *fileHandle = [NSFileHandle fileHandleForReadingAtPath:filePath];
[fileHandle seekToFileOffset:1000];
NSData *data = [fileHandle readDataOfLength:2000];
另外 分享给大家一个 苹果 App 下载站 http://appfishr.com
很多App可以直接下载解包研究一下
Use NSFileHandle: Seek to the offset where your data starts and start reading from there.
NSFileHandle *fileHandle = [NSFileHandle fileHandleForReadingAtPath:filePath];
[fileHandle seekToFileOffset:1000];
NSData *data = [fileHandle readDataOfLength:2000];
另外 分享给大家一个 苹果 App 下载站 http://appfishr.com
很多App可以直接下载解包研究一下