Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hervey

macrumors newbie
Original poster
Data from SQLite database is valid until - tableview cellForRowAtIndexPath. I've stripped down the code to it most basic, and still don't see the problem. Connections are made in IB, and data shows on console. Obviously I'm new to Cocoa/Obj C.

Code in:

-(UITableViewCell *)tableView🙁UITableView *)tableView
cellForRowAtIndexPath🙁NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier😡"TableViewCell"];
if (cell =nil) {
cell = [[[UITableViewCell alloc]initWithFrame:CGRectZero
reuseIdentifier: @"TableViewCell"] autorelease];
}
NSUInteger row = [indexPath row];
cell.textLabel.text = [cities objectAtIndex:row];
return cell ;
}

Error msg:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
2009-09-29 19:14:25.537 testAER[9939:20b]
 
chown33 -

Thanks! I could have stared at that for another day and missed it. Good eye!

What's with the emoticons appearing in the text. I didn't place them there, knowingly.

Cheers,

- Herv
 
You need to enclose your code with
Code:
 tags otherwise the forum will try to interpret the various parens, brackets, etc.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.