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 01-12-2009, 12:00 AM   #1 (permalink)
tadevil.com
New Member
 
Join Date: Jan 2009
Posts: 8
Default NSArray and image

hi
i am new to iphone app dev.
i am trying to make a NSArray with couple of image in it. images are stored in app directory. i want to load all images and display images by accessing that array using index. so far i am using doing this to load images

array = [NSMutableArray arrayWithObjects: @"1.png", @"2.png", nil];

and accessing it like this way
UIImage *img= [self.array objectAtIndex:index];
[disimg setImage:[img CGImage] atIndex:index type:quality];

obviously i am doing something wrong, pls help
tadevil.com is offline   Reply With Quote
 

» Advertisements
» Online Users: 753
15 members and 738 guests
aaronhartigan, Bertrand21, betterlee, chiataytuday, Domele, gascertificate, kampftrinker, Macaret, meribran, nidie, phackdat, superblooddrainer, wilsonn44, wodanbrlam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,828
Threads: 89,207
Posts: 380,639
Top Poster: BrianSlick (7,129)
Welcome to our newest member, aaronhartigan
Powered by vBadvanced CMPS v3.1.0

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