开发者

touch effect for Button in iphone

how can i just change the color,of a button when i set the focu开发者_StackOverflow社区s 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.


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.


Guess you have already asked this issue differently here..

But have you checked the answer?? You can use any of those methods at your will!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜