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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -