Try this in the method your button calls.
Code:
if ([self.view.subview isKindOfClass:[UIButton class]]) {
//do something such as
[[self.view.subview isKindOfClass:[UIButton class]] setText:@"testing"];
//[[self.view.subview isKindOfClass:[UIButton class]] setBackgroundColor:[UIColor whiteColor]];
}
The above is dry code as I am not in front of my mac, but it should work once the syntax is corrected. It will change the text of all the UIButtons on screen to say
testing. You will likely get a compiler "Warning" about not responding to setText, but that can be ignored...
you may be able to remove the
if-statement if applicable...