// Objective-Cの場合 [accountStore requestAccessToAccountsWithType:twitterAccountType withCompletionHandler:^(BOOL granted, NSError *error) { if (!granted) { NSLog(@"ユーザーがアクセスを拒否しました。"); }else{ NSLog(@"ユーザーがアクセスを許可しました。"); } }]; // Swiftの場合 // 一度 ACAccountStoreRequestAccessCompletionHandler で handlerを宣言しないとエラーになる // そのうち調べよう let handler: ACAccountStoreRequestAccessCompletionHandler = {granted, error
