문제

I want to show the upload process in DropBox. file is successfully uploaded with path. but the problem is that dropbox delegate methods are not calling.

[[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;
}

Implemention of delegate methods

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

    NSLog(@"%f",progress);

}
도움이 되었습니까?

해결책

It sounds like you want to see upload progress, right? If so, you need to implement uploadProgress, not loadProgress.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top