Hi all,
I really need some quick help with this.
I'm searching on a button based on the tag.
As the buttons in the UIView buttons are images, I want to change them after they are pressed.
However.. the UIButton keep returning the UIView buttons. And my UIView buttons get hidden when I press the first button (tag 0)
Whilst I'm searching the UIButton in UIView buttons based on the tag.
Anyone has any explanation and solution for this ?
For all buttons it's working except for my 'home' button. Then the whole view gets hidden :s
Even when I set tag of the buttons UIView to something like 9999 and with a isMemberOfClass checksum I never get to the first button (tag 0)
p.s. the button.hidden is for testing
I really need some quick help with this.
I'm searching on a button based on the tag.
As the buttons in the UIView buttons are images, I want to change them after they are pressed.
Code:
-(IBAction)buttonPressed:(id)sender {
...
...
UIButton *button = (UIButton *)[self.buttons viewWithTag: [sender tag]];
button.hidden = YES;
}
However.. the UIButton keep returning the UIView buttons. And my UIView buttons get hidden when I press the first button (tag 0)
Whilst I'm searching the UIButton in UIView buttons based on the tag.
Anyone has any explanation and solution for this ?
For all buttons it's working except for my 'home' button. Then the whole view gets hidden :s
Even when I set tag of the buttons UIView to something like 9999 and with a isMemberOfClass checksum I never get to the first button (tag 0)
p.s. the button.hidden is for testing
Last edited: