我想在另一个 ViewController 的 UITableview 中禁用 UIButton:
我试过,在 SecondViewController 里面,但它只禁用了 _buttonDesc,buttonCell 仍然是启用的:
- buttonCell 是 UITableView 内部的 Button。
- buttonDesc 是 SecondViewController 内的 Button Comprar。
.
-(IBAction)comprar
{
[_buttonDesc setTitleColor:[UIColor grayColor] forState:UIControlStateDisabled];
[_buttonDesc setEnabled:NO];
LivroCell *lvc = [[LivroCell alloc]init];
[lvc.buttonCell setEnabled:NO];
}