
Hi,
I am writing an iPhone application. I have to show UIButton Highlighted form my code. Tell me how to make an UIButton Highlighted from Objective C code?
Thanks

Hi,
Use the appropriate button for Button's Highlighted state as shown below:
UIImage * imgSelected = [UIImage imageNamed:@"subtabButton_selected.png"];
[button setBackgroundImage:imgSelected forState:UIControlStateSelected];
[button setBackgroundImage:imgSelected forState:UIControlStateHighlighted];
and then use the following code to make button highlighted:
button.highlighted = YES;
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.