没有调用DropBox委托方法?

时间:2014-03-12 18:49:08

标签: ios dropbox-api

我想在DropBox中显示上传过程。文件已成功上传路径。但问题是dropbox委托方法没有调用。

[[self restClient] uploadFile:@"1.png" toPath:@"/" withParentRev:nil fromPath:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];
    NSLog(@"%@",[self restClient].delegate);


  - (DBRestClient *)restClient {
    if (!restClient) {
        restClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
        restClient.delegate = self;
    }
    return restClient;
}
  

实施委托方法

 - (void)restClient:(DBRestClient*)client loadProgress:(CGFloat)progress forFile:(NSString*)destPath;{

    NSLog(@"%f",progress);

}

1 个答案:

答案 0 :(得分:1)

听起来你想看到上传进展,对吗?如果是,则需要实施uploadProgress,而不是loadProgress