UITableView Won't Update; Crashes with EXC_BAD_ACCESS
UITableView Won't Update; Crashes with EXC_BAD_ACCESS
- Subject: UITableView Won't Update; Crashes with EXC_BAD_ACCESS
- From: Jason Berlinsky <email@hidden>
- Date: Fri, 26 Feb 2010 20:16:55 -0500
I'm loading data dynamically from an API using a UISearchBar and trying to display it, using something like this: http://gist.github.com/316354
My UITableViewController code is set up to read from self.data, which is initially a NSArray of @"" elements, as such: http://gist.github.com/316355
All I get from GDB when I do this is: http://gist.github.com/316357
It looks like the NSArray is being populated properly, then things are failing on/after the reloadData call (breakpoints confirm this, but can't isolate where things are going wrong)
When I remove the NSLog(@"%@",self.data), the application doesn't crash, but the UITableView doesn't update. When I replace it with fast enumeration over self.data, I get the crash again (crash log: http://pastebin.com/NDVKLsJC).
Any ideas?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden