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 02-11-2010, 08:37 AM   #8 (permalink)
seb_bue
Registered Member
 
Join Date: Nov 2009
Posts: 24
Default

I don't understand the following step:

Code:
controller.showData = [[NSMutableArray alloc] initWithArray:arryData];
	
	controller.showData = [arryData objectAtIndex:indexPath.row];
First you set showData to a new array with the content of arryData, then you pick out one element of the array with index "indexPath.row" and assign it to showData.
In my opinion you just have to delete the second line, like this:

Code:
	controller.showData = [[NSMutableArray alloc] initWithArray:arryData];
seb_bue is offline   Reply With Quote
 

» Advertisements
» Online Users: 786
20 members and 766 guests
ADY, ckgni, dabvid, dfvdan, GFish, GHuebner, ilmman, iph_s, joeallenpro, john love, keeshux, marto1914, Ndpiparava, nfung, nru, tomtom100, VikMyr, waq963, _Mac
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,868
Threads: 89,225
Posts: 380,692
Top Poster: BrianSlick (7,129)
Welcome to our newest member, stokesreece
Powered by vBadvanced CMPS v3.1.0

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