У меня проблемы с изменением названия кнопки UIButton btn2 после нажатия btn1.Когда я использую _definition settitle:@"Show Word" forState: UIControlStateNormal
, это меняет оригинал btn1.
Вот код вашего отзыва,
- (IBAction)mynextPressed:(UIButton *)sender {
//Display the string in the label field
[self.WordDisplay setText:vocabulary];
//reset center button with "show word"
[_definitionPressed setTitle:@"Show Word" forState:UIControlStateNormal];
NSLog(@"displaying word: %@", _definitionPressed.titleLabel);
}