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

Thread: Random Rocks
View Single Post
Old 03-03-2010, 05:03 PM   #63 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by wheli View Post
Since I never see "yay" in the console, I assume that my array is empty. Any ideas why this is happening?
You init an array, but you never point the pointer fruitArray at it. Try this:

Code:
if (fruitArray == nil) { fruitArray = [[NSMutableArray alloc] init];}
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 759
21 members and 738 guests
BrianSlick, dbramhall, enamodeka, EvilElf, FrankWeller, Gaz, GraffitiCircus, jbro, JJGEight, Kirkout, LiquidFire, mochibits, MysticLine, networ, simplymuzik3, SLIC, speed4mee, taylor202, v1n2e7t, wigginsray, zin
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,529
Threads: 94,051
Posts: 402,637
Top Poster: BrianSlick (7,979)
Welcome to our newest member, wigginsray
Powered by vBadvanced CMPS v3.1.0

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