It sounds like you want to see upload progress, right? If so, you need to implement uploadProgress
, not loadProgress
.
DropBox delegate methods not being called?
-
13-06-2023 - |
Question
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);
}
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow