How to call a method on UIButton in NSArray?
Posted
by
user1792818
on Stack Overflow
See other posts from Stack Overflow
or by user1792818
Published on 2012-11-22T21:32:58Z
Indexed on
2012/11/22
22:59 UTC
Read the original article
Hit count: 116
objective-c
|nsarray
I'm trying to enable a button but the button that I would enable in this function changes. I have an array of the buttons but when I use the .enabled on the array index I want it says that this doesn't work for IDs.
I have used this array to set the text of each button before using:
[[ButtonArray objectAtIndex: Index] setTitle:(@"blahblahblah") forState: UIControlStateNormal];
is there any way to use a similar function call to enable and disable?
© Stack Overflow or respective owner