2014-03-12 2 views
0

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); 

} 
+0

NSLog가 적절한 대리인 객체를 반환한다고 가정합니다. –

+0

네 self.viewcontroller입니다. –

답변

1

그것은 바로, 소리? 그렇다면 loadProgress이 아니라 uploadProgress을 구현해야합니다.

+0

감사합니다 남자 나는 잘못된 방법을 사용하고 있습니다. –

관련 문제