Vote count:
0
I want to change image in UIImageview by renaming image name mechanism.
As i have lots of XIB in my project and i need to change backgroung image on click of button.basically user have theme-1 and theme-2 option.
on click of theme-1 i need to set bg_yellow.png on all imageview on all xib on click of theme-2 i need to set bg_red.png on all imageview on all xib
this is possible by creating refrence of each imageview and writing if condition.But this is wastage of time and lots of effort.
is there anyway that i can rename my imagefile at run time under resource folder?
asked 21 secs ago
Changing Image in UIImageview
Aucun commentaire:
Enregistrer un commentaire