我已经检查了好几次以确保我在 IB 中的连接是正确的。
// This does not work
UIButton *additionButton = [self.gameShopCoinButtonCollection objectAtIndex:0];
additionButton.enabled = NO;
// This does work
-(IBAction)gameShopBuyButtonPressed:(UIButton *)sender {
sender.enabled = NO;
}