Objective-C でメソッド呼び出しをフォーマットする方法について、さまざまな意見があることは知っています。つまり、
[self presentViewController:scanViewController
animated:YES
completion:nil];
対
[self presentViewController:scanViewController animated:YES completion:nil];
このインデントを制御するために使用する .clang-format ファイルのオプションは何ですか? (嫌ならコロンを並べる等)
また、それは私だけですか、それともこのフォーマッタはブロックを知らないのですか? 成功ブロックの if ステートメントがインデントされておらず、失敗ブロックの NSLog 関数もインデントされていないことに注意してください。
[self.client getPath:path
parameters:parameters
success:^(AFHTTPRequestOperation *operation, id responseObject) {
if ([from_id isEqualToString:self.from_id]) {
self.image.image = [UIImage imageWithData:responseObject];
}
}
failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(error.description);
}];