我有一个按钮,proceedBtn。我在界面生成器中将其设置为禁用。我有单选按钮,我想在启用proceedBtn 之前选择它们。如何在 onRadioBtn 函数中将proceedBtn 设置为启用。
-(IBAction)onRadioBtn:(RadioButton*)sender
{
Singleton *single = [Singleton sharedInstance];
_statusLabel.text = [NSString stringWithFormat:@"Selected: %@", sender.titleLabel.text];
single.rb = sender.titleLabel.text;
NSLog(@"%@", sender.titleLabel.text);
}
- (IBAction)proceedBtn:(UIButton *)sender
{
Singleton *single = [Singleton sharedInstance];
NSLog(@"%@", single.rb);
if([single.rb isEqualToString: @"Choose Friend(s)"])
[self nameWallToFriends];
else
[self nameWallToChooseHome];
}