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];
}
しかし問題は、テキストが決して変更されないことです。前もって感謝します!