当我创建一个带标识符的按钮时,动作参数会给出错误

时间:2010-09-09 20:06:54

标签: iphone xcode uibutton

stop = [[UIButton alloc] style:UIButtonTypeCustom target:self identifier:stop action:@selector [webView stopLoading]];

当我使用它时,给出语法错误:预期

1 个答案:

答案 0 :(得分:1)

正确的语法是@selector(stopLoading)