how can i just change the color,of a button when i set the focus on the button in iphone. I mean to say , for example we have 5 buttons, and i am just setting the focus on each of the button. i want those buttons to be higlighted with different color. but when press or touch up inside the utton, the navigation is made to the respective forms, that is set for that button.
A:
you can write method, for example, let it be
- (void) changeButtonState:(UIButton*) buttonToChange;
then you can call it in your onBtnClk method for button you need. in that method you can change image for your button's UIControlStateNormal mode. and if I understand right, you can use toolbar or tabbar instead of buttons.
Morion
2009-11-24 10:59:42
can you help me with the code
shreedevi
2009-11-24 11:14:22
you mean to say when i will have to click the button , and then on button click event call this function.But in button click event i am navigating to other form.I just want to change color, when i just keep focus on the button.
shreedevi
2009-11-24 11:18:27