iphone - Trying to Concatenate Object names in Objective-C -
i know can concatenate variable name using stringwithformat, possible concatenate object name? i'm not having luck working around one.
image+1.hidden = yes; example.
if wanted loop through that, 10 times, how create 'image+1' part?
thanks help.
i don't think possible concatenate object names in objective c, create array of images, , reference each image like
image[0].hidden = yes;
that fit loop. add images (i assume uiimages) nsarray, loop through so:
nsarray* arrayofimages; for(uiimage* image in arrayofimages) { image.hidden = yes; }
Comments
Post a Comment