NSMutableArray加载项不影响计数?
#import <UIKit/UIKit.h>@interface Test2AppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
NSMutableArray *giftees;}@property (nonatomic, retain) UIWindow *window;@property (nonatomic, retain) NSMutableArray *giftees;@end- (void)bootstrapGiftees{
NSArray *gifteeNames = [NSArray arrayWithObjects:@"Jesse",,nil];
for (NSString *gifteeName in gifteeNames)
{
GifteeModel *g = [[GifteeModel alloc] init];
g.name = gifteeName;
[self.giftees addObject:g];
NSLog(@"giftees count = %d", [self.giftees count]);
[g release];}}
慕姐8265434
largeQ
繁花不似锦
随时随地看视频慕课网APP
相关分类