Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-19-2009, 05:29 PM   #7 (permalink)
icelandic
Registered Member
 
Join Date: Jul 2009
Posts: 21
Default

More or less, I want to have a string called "q0" and I want to get the id for the UIImageView object named q0. Google is not my friend for this problem.

I can change an image like this:

PHP Code:
q0.image = [UIImage imageNamedimageLocation]; 
but I would like to change the image like this sudo code:
PHP Code:
NSString *objectName = @"q0";
id imageID = [objectName tag];
UIImageView *currentObject = [UIImageView initWithIdimageID];
currentObject.image = [UIImage imageNamedimageLocation]; 
icelandic is offline   Reply With Quote
 

» Advertisements
» Online Users: 878
23 members and 855 guests
ADY, anshuk1219, chits12345, dabvid, dfvdan, donlucacorleone, dreamer11, FAED, gmarro, Grinarn, honeybutterfly, ilmman, IQ8Y1, john love, leahov, M@realobjects, Nicoloren, nobre84, R40ul, RoryHarvey, sethaver, snackbox, VikMyr
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,866
Threads: 89,225
Posts: 380,691
Top Poster: BrianSlick (7,129)
Welcome to our newest member, sethaver
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.