最有可能是愚蠢的问题,但有什么区别:iPhone:差异@selector语法
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Join" style:UIBarButtonItemStylePlain
target:self action:@selector(pressJoinButton)];
和
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Join" style:UIBarButtonItemStylePlain
target:self action:@selector(pressJoinButton:)];
注意如何一个是pressJoinButton,另一个是pressJoinButton:
可能重复[当使用一个冒号@选择器](http://stackoverflow.com/questions/4953623/when-to-use-a-colon-with-a-selector) –
可能解决这个问题的答案:http://stackoverflow.com/questions/4953623 /时使用的-A-结肠上带有一个选择器 – gram