【发布时间】:2010-02-27 17:53:08
【问题描述】:
@property (nonatomic, retain) NSMutableArray *filteredListContent;
----
@synthesize filteredListContent;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSMutableArray *test = [[NSMutableArray alloc] init];
[test addObject:@"test string"];
[filteredListContent addObjectsFromArray:test];
NSLog(@"%@", test);
NSLog(@"Filtered Array is %@", filteredListContent);
[window makeKeyAndVisible];
}
我的测试日志显示“测试字符串”但“过滤后的列表数组为 (null)”
如何使用数组 test 设置数组 'filteredListContent'...
我做错了什么? :-(
【问题讨论】:
标签: iphone nsmutablearray nsarray