以下の例のように、AppCode がブロックをインデントする方法が本当に好きではありません。
AppCode を設定して、Xcode のようにブロックをインデントするか、さらにインデントして、メソッド名がどこで終わり、ブロックが始まるかを簡単に言いたいと思います。これはどのように可能ですか?
アプリコード:
[UIView animateWithDuration:2.f
delay:.2f
usingSpringWithDamping:1.f
initialSpringVelocity:-1.5f
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
self.buttonConstraint.constant = 0;
[self.view layoutIfNeeded];
} completion:^(BOOL finished) {
if (finished) {
if (completionBlock) {
completionBlock();
}
}
}];
Xcode:
[UIView animateWithDuration:2.f
delay:.2f
usingSpringWithDamping:1.f
initialSpringVelocity:-1.5f
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
self.buttonConstraint.constant = 0;
[self.view layoutIfNeeded];
} completion:^(BOOL finished) {
if (finished) {
if (completionBlock) {
completionBlock();
}
}
}];