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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -