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 04-19-2009, 01: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
 

» Advertisements
» Online Users: 693
22 members and 671 guests
ADY, BrianSlick, ckgni, comicool, creyon, djohnson, F_Bryant, GameViewPoint, iphonesdkdevnewbie, JasonR, jneiluj78, joeallenpro, LiquidFire, lmpeejay, mathieuh, MaximT, mer10, Raggou, ric2z, smithdale87, superg, touchcream
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,742
Threads: 89,197
Posts: 380,548
Top Poster: BrianSlick (7,129)
Welcome to our newest member, MaximT
Powered by vBadvanced CMPS v3.1.0

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