1

我想要这样的多行方法调用:

[self.markAsFinishedButton
    setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor] andSize:CGSizeMake(1, 1)]
    forState:UIControlStateHighlighted];

但就目前而言,它看起来像这样:

[self.markAsFinishedButton
setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor] andSize:CGSizeMake(1, 1)]
forState:UIControlStateHighlighted];

我的.uncrustify文件在这里: https ://gist.github.com/nickcheng/d107d6f0f74ef381fb8e

顺便说一句,我可以通过使用这样的配置在分配中获得正确的缩进:

_tapRecognizer = [[UITapGestureRecognizer alloc]
    initWithTarget:self
    action:@selector(controlButtonTapped)];

有人可以帮助我吗?谢谢!

4

1 回答 1

0

我使用了这两个(第二个用于消息声明):

align_oc_msg_colon_span = 10
align_oc_decl_colon = true

但我通常像这样对齐代码:

[self.markAsFinishedButton setBackgroundImage:[UIImage imageWithColor:[UIColor blueButtonColor]
                                                              andSize:CGSizeMake(1, 1)]
                                     forState:UIControlStateHighlighted];
于 2016-08-02T05:27:23.517 回答