Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-30-2008, 11:12 PM   #4 (permalink)
jonc
Registered Member
 
Join Date: Apr 2008
Location: Colorado
Posts: 312
jonc is an unknown quantity at this point
Send a message via AIM to jonc
Default Re: Removing Last Table Section

I am getting strange behavior also, I just didn't realize it earlier. I keep getting the following error when I try to insert rows in a newly created section I add between two other sections (there are a total of 3 including this one, it is going in the middle of the two). If I just add the section (and not the rows)it works fine, but the cells that were already on the screen don't update. When I add the line to insert the rows I get the error. The thing is it starts with one section and you can add the last two in either order, but they always have the same index when added. If I use this same code when I only have one section and add it to the end it works. I can even add the third section after it after that without problems. It seems to be happening after committing all the row changes in my code while the tableView is doing it's thing. Seems like there could be an issue with TableViews, but I never added rows like this before beta 6 so I could be doing something wrong. I have looked over my code for the last 3 hours piecing it apart though, and I am starting to think it could be that tableView has some issues.

Code:
Thread 0 Crashed:
0   libSystem.B.dylib             	0x90585558 tiny_malloc_from_free_list + 62
1   libSystem.B.dylib             	0x9057e3ed szone_malloc + 180
2   libSystem.B.dylib             	0x9057e2f8 malloc_zone_malloc + 81
3   com.apple.CoreFoundation      	0x90777451 _CFRuntimeCreateInstance + 145
4   com.apple.CoreFoundation      	0x907054a8 __CFArrayInit + 184
5   com.apple.CoreFoundation      	0x907e1f25 -[__NSPlaceholderArray initWithCapacity:] + 69
6   com.apple.CoreFoundation      	0x907e2012 -[__NSPlaceholderArray init] + 50
7   UIKit                         	0x30aa656a -[UITableView(_UITableViewPrivate) _updateWithItems:withOldRowData:oldRowRange:newRowRange:] + 2800
8   UIKit                         	0x30aa51a6 -[UITableView(_UITableViewPrivate) _endCellAnimations] + 741
jonc is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,638
Threads: 94,102
Posts: 402,823
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Studder
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.