最有可能是愚蠢的問題,但有什麼區別: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