ios - Having a single image view to show different images -


my app requires characters except can customized. possible have 1 image view change actual image else?

here example: there item 1 , item 2. item 1 default. if click buy item 2, image view of showing item 1 replaced picture of item 2.

is there way can , if not how developers have customization that?

unless missing something, seems simple as:

uiimageview *myimg = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"myfirstimage"]]; 

and if want change image myotherimage, can set below

[myimg setimage:[uiimage imagenamed:@"myotherimage"]]; 

if need image component, subclass uiimageview , call functions swap between images.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -