我正在尝试习惯这种格式。但是我不断遇到这样的奇怪问题......
[accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted) {
mAccounts = [[accountStore accountsWithAccountType:accountType] retain];
if(acctId != nil) {
mActiveAccount = [[accountStore accountWithIdentifier:acctId] retain];
}
}
}];
当我编译时,我在块的最后一行得到一个错误......
internal compiler error: in convert_all_function_calls, at tree-nested.c:1976