所有权不明。 我愿以以下方式在一顿添加“国际行动”方法:
(h)类
{
UIButton *button;
}
-(IBAction)ButtonReleased:(id)sender
(m)
{
-(IBAction)ButtonReleased:(id)sender
{
//Actions done by button pointer
}
- (void)viewDidLoad
{
[super viewDidLoad];
[PlayButton setFrame:CGRectMake(10, 10, 100, 50)];
[PlayButton setTitle:@"PlayButton" forState:UIControlStateNormal];
[self.view addSubview:PlayButton];
}
}
问题是,我如何将UIButton纽顿行动(say, TouchUpInside)与ButtonReleased方法联系起来。