@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)的如何設置另一個陣列的數組?
如何設置陣列「filteredListContent」與陣列測試...
我在做什麼錯? :-(
什麼爲內存管理問題。查看http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html。 – kennytm 2010-02-27 19:02:46
'$ prevComment =〜s/^ What/Watch /;' – kennytm 2010-02-27 19:48:20