Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-19-2009, 12:23 PM   #12 (permalink)
iphonedev.
New Member
 
Join Date: Apr 2009
Posts: 92
Default

Code:
for (int j = 0; j < numberArray.count; j++) {
	int randomIndex = (arc4random() % 52);
             [cardsArray exchangeObjectAtIndex:j withObjectAtIndex:randomIndex];
	}
Thats what I am using to shuffle the cards but it says "cardsArray may not respond to exchangeObjectAtIndex"
iphonedev. is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,308
Threads: 39,107
Posts: 171,455
Top Poster: smasher (2,575)
Welcome to our newest member, howardie08
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:28 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.