我在iOS中将文本更改为uibutton时出错
@interface ViewControllerSonidos : UIViewController{
__weak IBOutlet UIButton *initgame;
}
@property (weak, nonatomic) IBOutlet UIButton *initgame;
- (IBAction)Reproducir:(id)sender;
我的实现文件如下所示:
@implementation ViewControllerSonidos
@synthesize initgame
- (IBAction)Reproducir:(id)sender {
[initgame setTitle:@"Continue" forState:UIControlStateNormal];
}
但问题是文本永远不会改变,有人看起来有什么问题吗?提前致谢!