Disable UIButton with a specific tag
I want to disable a button with a specific tag, I try this code:
UIButton *button = (UIButton *)[self.view viewWithTag:33];
[button setEnabled:FALSE];
but It don't 开发者_运维问答work, why?
Try to debug and see if there is an address for the button. Worst case, u can also try using NO, instead of FALSE.
精彩评论