Duke
Duke

Reputation: 1731

obtain upload progress in dropbox(ios)

in dropbox i can easily upload my files but when i trying to get progress of my upload(percentage of file uploaded) i fail , i'm using this method that i found in

restclient,h

it should be working but nothing happen :

- (void)restClient:(DBRestClient*)client uploadProgress:(CGFloat)progress forFile:(NSString *)destPath from:(NSString *)srcPath {

    NSLog(@"%0.00f",progress);

}

i also have been set my class as delegate for restclient and it work fine in other things.

Upvotes: 2

Views: 1825

Answers (1)

Samui
Samui

Reputation: 1384

- (void)restClient:(DBRestClient*)client uploadProgress:(CGFloat)progress forFile:(NSString *)destPath from:(NSString *)srcPath 
{

    NSLog(@"%.2f",progress); //Correct way to visualice the float

}

Upvotes: 5

Related Questions