开发者

uibutton controlstate image problem

i have a uibutton. im using two images for UIControlStateNormal and UIControlStateSelected. when i touch down the button it s开发者_开发问答hows the UIControlStateSelected image for a split second. what is the reason?


I'm not sure i've got ur question correctly but try setting the image for UIControlStateHighlighted instead of UIControlStateSelected if you want the other image to be displayed as long as you keep the button pressed.

Reference: UIControl Documentiation says,

Note that the control can be in more than one state

In you case Selected and Highlighted. So UIControlStateNormal image is the default image used for highlighted state.

This is my best guess.

Good Luck,

Swapnil

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜