我正在尝试将事件添加到 UIbutton:
UIButton *btn = [[UIButton alloc] init];
[btn setBackgroundImage:[UIImage imageNamed:@"aa.png"]
forState:UIControlStateNormal];
[btn addTarget:self
action:@selector(Presed:)];
我收到了这个警告:
"UIButtom may not respond to addTarget:action"
我正在为其创建此按钮的界面继承自CDVPlugin
我的代码有什么问题?