01-19-2010, 06:56 PM
|
#10 (permalink)
|
|
Registered Member
Join Date: Jan 2010
Posts: 88
|
Quote:
Originally Posted by smasher
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.
|
|
|