In this project, it took a long time to splice the data, and it took a long time to put it on the write system sandbox. Therefore, it is more appropriate to use the proxy way to handle. In dealing with large file download problems, whether using synchronous or asynchronous download, is to get all the data at once, not advisable. 7//8 9 #import "YYViewController.h" Yyviewcontroller () (nonatomic,strong) Nsmutabledata *fil Edata 13-(ibaction) star 14 YYViewController18-(void) VIEWDIDLOAD20 78 on the screen to click on the download button to download the files on the local server. Hint: The project code, just for example, is not reasonable.ġ//2//YYVIEWCONTROLLER.M 3//01-File Download (unreasonable) 4//5//Created by Apple on 14-6-30. The recommended tool, Simpholders, can be used to view the sandbox.
In the Finder, some of the system's files (repositories) are hidden and can display hidden files by running code in the terminal.ĭefaults write appleshowallfiles YESĢ.
mogenerator If you’re working with CoreData, you should be using this tool to abstract your object classes. iExplorer For inspecting the contents of your app (or others) on-device, this is a great tool. If you are downloading pictures, you can also use the Sdwebimage frameworkġ. SimPholders 2 For finding and inspecting the contents of your app in the simulator. Philip? Nsurlconnection send an HTTP request to download If the file is small, the download method will be moreĭirectly with NSData's + (ID) Datawithcontentsofurl: (nsurl *) URL IOS Development Web Chapter-File Download (one