Quote:
Originally Posted by smasher
The problem is here. You are releasing an object that you didn't init, retain, or copy.
Code:
NSString *cellLabel = [[[ItemsList objectForKey:currentSection] objectAtIndex:row] objectAtIndex:0];
cell.textLabel.text = cellLabel;
[cellLabel release];
Once your string gets released it's being replaced in memory by something else; and that other object is catching messages intended for your string and choking on them.
|
Doh!! Ok - I'll take that release out when I get home tonight and give it a whirl. I'm still relatively new to Objective C, so I'm not entirely surprised I'm doing something like that. lol.
Thanks smasher!
pwnified: When I was looking through the stack trace, it was following all kinds of functions I've never seen, and the only one that I could click on and see where it was in my code, was at the bottom where it called the application main.. lol. I really wasn't sure what to make of it.