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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-07-2009, 11:08 PM   #1 (permalink)
nithiniz
Nithin
 
Join Date: Nov 2009
Location: Kerala,India
Age: 25
Posts: 26
nithiniz is on a distinguished road
Send a message via Yahoo to nithiniz
Question TableView loading only the first row of array to all the cells

In my application, i'm using a mutable array to store the images which are picked from the iphone photolibrary by uiimagepicker. That part is working fine and i'm getting the count of the array incrementing each time the image is picked. The problem is that, when loading the array to the tableView, all the cells show the same image, and that too, the first element of the array.

[array addObject:thumbnail];//here array is a mutable one and thumbnail is the image object

count= [array count];//getting array count.(incrementing on each addition), is fine

NSInteger row = [indexPath row];
cell.imageView.image = [array objectAtIndex:row];// here lies the problem??????

Any one knows the issue, pls give the guideline..

Thanks,
nithiniz is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,387
Threads: 94,003
Posts: 402,458
Top Poster: BrianSlick (7,978)
Welcome to our newest member, latoncefrank
Powered by vBadvanced CMPS v3.1.0

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