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 01-19-2010, 06:56 PM   #10 (permalink)
qwertyp
Registered Member
 
Join Date: Jan 2010
Posts: 88
qwertyp is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
Sorry, arrayWithCapacity returns an array that gets "autorelesed" - the usual way to deal with this is to create a "property" and use that to retain the object. If you haven't learned about properties yet, try this instead:


Code:
//for your .h file, between the interface brackets{}
NSMutableArray* array;

//for your .m file, in initWithNib or viewWillAppear
array =  [[NSMutableArray alloc] init];
Got it working! Thanks.
qwertyp is offline   Reply With Quote
 

» Advertisements
» Online Users: 422
17 members and 405 guests
acegames, andyzaharia, Bobarino, djbrooks111, esoteric, fanarin, Free App Monster, HemiMG, ilmman, inkcpp, jbro, kilobytedump, malaki1974, minglei, Nuncha, raheel, taewhan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,433
Threads: 94,026
Posts: 402,590
Top Poster: BrianSlick (7,978)
Welcome to our newest member, caraldo32
Powered by vBadvanced CMPS v3.1.0

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