i have one view .in that view i have 2 buttons .
i know tag of that button . i want to change image of that button.
how can i change image by this tag?
UIScrollView * scView=(UIScrollView*)[self.view viewWithTag:20]; UIButton *button = (UIButton *)[scView viewWithTag:3];
UIButton *button = (UIButton *)[myView viewWithTag:myTag]; [button setImage:... forState:...];