這裏是我的生成數據爲什麼tableview不顯示綁定數據?
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
[array initWithCapacity:20];
}
- (IBAction) readlog:(id)sender {
for (int i = 0; i < 20; i++) {
NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:[path stringByAppendingFormat:@"/%d.log",i]];
[array addObject:d];
}
}
- (IBAction) writelog:(id)sender {
for (int i = 0; i < 20; i++) {
NSMutableDictionary *d = [NSMutableDictionary dictionary];
NSString *name = [NSString stringWithFormat:@"testfile%d", i];
[d setObject:[NSDate date] forKey:@"date"];
[d setObject:[path stringByAppendingFormat:@"/%d.log", i] forKey:@"path"];
[d setObject:name forKey:@"name"];
[d writeToFile:[path stringByAppendingFormat:@"/%d.log", i] atomically:YES];
}
的代碼,我結合我的tableview柱用的keyPath名稱/路徑/日期 appdelegate.array但它不會在數組中顯示任何數據..有什麼錯這裏? 謝謝!
非常感謝你!!!!!! – Frost 2010-07-01 17:13:36