objective-c - iOS Qiniu breakpoint resume download
学习ing
学习ing 2017-06-14 10:50:32
0
1
926

Use breakpoint resumption when using Qiniu Object Storage iOS objective-c sdk
1. Use the following code to initialize QNUploadManager

    QNFileRecorder *file =  [QNFileRecorder fileRecorderWithFolder:[NSTemporaryDirectory() stringByAppendingString:@"qnFileRecorder"]
                                                             error:&error];
    if (error == nil)
    {
        _qnUploadTaskManager = [[QNUploadManager alloc] initWithRecorder:file];
    }

2. The following error will be prompted after uploading later
up record set error mohoApp/class/d5e3bcd08a7448d9856818ac00e322a4_NJ5BCT_1497338027000_video.mp4 Error Domain=NSCocoaErrorDomain Code=4 "Folder "d5e3bcd08a7448d9856818ac 00e322a4_NJ5BCT_1497338027000_video.mp4" does not exist." UserInfo={ NSFilePath=/Users/darsky/Library/Developer/CoreSimulator/Devices/7AF65925-8B7C-462A-B055-24A889ACD874/data/Containers/Data/Application/3BAFD5A8-9995-427A-BEF2-F76B6F982970/tmp/QNFileRecorder/moho App/class /d5e3bcd08a7448d9856818ac00e322a4_NJ5BCT_1497338027000_video.mp4, NSUserStringVariant=Folder, NSUnderlyingError=0x608000054910 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

3. Are there any missing steps?

学习ing
学习ing

reply all(1)
三叔

The key parameter in putFile is incorrect. It can be used normally after being modified correctly

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template