我搜索了几天,但我仍然找不到UIButton的选择器。帮助!
在我的视图控制器中。
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
-(IBAction)answer1:(id)sender{
l.text = @"Try again";
}
-(IBAction)answer2:(id)sender{
label.text = @"Yes congratulations";
}
-(IBAction)answer3:(id)sender;{
s.text = @"Try again";
}
-(IBAction)answer3:(id)sender;{
x.text = @"Try again";
}
-(IBAction)button1:(id)sender{
y.( ) = self.try Again;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
我的视图控制器h。
IBOutlet UILabel *label;
IBOutlet UILabel *s;
IBOutlet UILabel *l;
IBOutlet UILabel *x;
IBOutlet UIButton *y;
}
-(IBAction)answer1:(id)sender;
-(IBAction)answer2:(id)sender;
-(IBAction)answer3:(id)sender;
-(IBAction)answer4:(id)sender;
-(IBAction)button1:(id)sender;
@end
我想知道我可以在哪里填写选择器空间(括号中的空格)请告诉我你是否知道!