OK, trafilem na fajny tutorial gdzie wszystko fajnie dziala tyle ze jak przepisuje projekt od zera to wywala sie mimo ze moim zdaniem wszystko jest identyczne (oryginalny projekt uruchamia sie bardzo dobrze).
Kod:
- (void)viewDidLoad {
[super viewDidLoad];
if(CurrentLevel == 0) {
//Initialize our table data source
NSArray *tempArray = [[NSArray alloc] init];
self.tableDataSource = tempArray;
[tempArray release];
DrillDownAppAppDelegate *AppDelegate = (DrillDownAppAppDelegate *)[[UIApplication sharedApplication] delegate];
self.tableDataSource = [AppDelegate.data objectForKey:@"ListaZabiegow"]; // w tej lini wszystko sie wysypuje
}
else
self.navigationItem.title = CurrentTitle;
}
Otrzymuje nastepujacy blad:
Kod:
2011-08-26 13:12:41.394 TapBarTest[3381:f203] -[TapBarTestAppDelegate data]: unrecognized selector sent to instance 0x74511f0
2011-08-26 13:12:41.395 TapBarTest[3381:f203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TapBarTestAppDelegate data]: unrecognized selector sent to instance 0x74511f0'
*** First throw call stack:
(0xfe8082 0x1179d0a 0xfe9d1d 0xf4ef70 0xf4ed52 0x14324 0x451f05 0x46cc89 0x46cabd 0x46b087 0x46af2c 0x46c9f4 0xfe9ef9 0x38f542 0x38f4da 0x5b2e69 0xfe9ef9 0x38f542 0x38f4da 0x434576 0x434a3f 0x4345ab 0x5b561f 0xfe9ef9 0x38f542 0x38f4da 0x434576 0x434a3f 0x433cfe 0x3b4810 0x3b4a36 0x39b234 0x38ea29 0x1bd810d 0xfbc1f5 0xf210a2 0xf1f98a 0xf1ee34 0xf1ed4b 0x1bd69dd 0x1bd6aa2 0x38ca1b 0x22b9 0x2235)
terminate called throwing an exception
Co moze byc przyczyna takiego bledu ? lub o czym moglem zapomniec ... jak wykomentuje ta jedna linijke to UITableView ladnie sie laduje tyle ze pusty.