开发者

Appcelerator. Change image in image view on click

Titanium SDK version: 1.7.0 iPhone SDK version: 4.2

I am developing an iOS app and I got an image that acts like a button in a row in a table and when I click this image view I want to change the image to another image.

For example if I 开发者_运维百科click the image view which displays picture1.png I want it to show picture2.png after the click.

How can I do this?

I tried e.source.image = "picture2.png"; but this did not work.


Solved it by using:

e.source.image = '../images/picture2.png';


Please remove your Ti.UI.SIZE in TableView and TableViewRow both height and width... It will work

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜