objective-Cの勉強中の者です。サンプルのコードを読んで勉強しているのですが分からないところがあったので質問させていただきます。以下、サンプルのコードの一部です。
// Show the OAuth 2 sign-in controller
NSBundle *frameworkBundle = [NSBundle bundleForClass:[GTMOAuth2WindowController class]];
GTMOAuth2WindowController *windowController;
windowController = [GTMOAuth2WindowController controllerWithScope:kGTLAuthScopeCalendar
clientID:clientID
clientSecret:clientSecret
keychainItemName:kKeychainItemName
resourceBundle:frameworkBundle];
[windowController signInSheetModalForWindow:[self window]
completionHandler:^(GTMOAuth2Authentication *auth,
NSError *error) {
// Callback
if (error == nil) {
self.calendarService.authorizer = auth;
if (signInDoneSel) {
[self performSelector:signInDoneSel];
}
} else {
self.calendarListFetchError = error;
[self updateUI];
}
}];
この^はなんの意味があるのでしょう?
あと、できればcompletionHandleは何か意味があるのかお教ください。
どうぞ、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2014/10/29 06:37
2014/10/29 08:37