Dropbox 설명서는 기본적으로 인증에 대한 응답이 Appdelegate.m에 발생 함을 설명합니다. 내 자신의 클래스의 대리인을 동일한 방식으로 수행하는 방법은 무엇입니까? 정보 PLIST의 URL 유형에서Dropbox 인증 응답 처리
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url
sourceApplication:(NSString *)source annotation:(id)annotation {
if ([[DBSession sharedSession] handleOpenURL:url]) {
if ([[DBSession sharedSession] isLinked]) {
NSLog(@"App linked successfully!");
// At this point you can start making API calls
}
return YES;
}
// Add whatever other url handling code your app requires here
return NO;
}
나는 당신이이 생각하지 않는다 'openURL'이 구현 된 곳에 대한 선택. 나는 당신의'UIApplication' 클래스 (보통'AppDelegate.m'라는 파일)의 멤버 여야한다고 믿습니다. – smarx