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);
}
NSLog가 적절한 대리인 객체를 반환한다고 가정합니다. –
네 self.viewcontroller입니다. –