开发者

Hide/Show UIImage on UIbutton When Clicked

I have 10 UIimages and 10 UI开发者_开发问答Buttons. M assigning Images to buttons via array.

I want my to hide and show the images only on button Click.

Is there any way to hide and show the UIImage whisch is assigned to button via array?????


assign for every UIImage and UIButton the same Tag by setTag proprieties then when you click on a specific UIButton search the array and tag the tag that related to the selected UIButton, Then use the retrieve tag to retrieve the UIImage and use the proprieties setHidden TO Hide/Show it.

and surely you have to use UIImageView instead of UIImage.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜