On Oct 7, 2010, at 8:09 AM, Nicolas Berloquin wrote: > Hi ! > > I have a UITableView that creates/reuses tableViewCells ( > UITableViewCellStyleDefault) on demand, as is usually done, > ie cellForRowAtIndexPath: uses the same cells over and over.
What do you mean, "uses over and over"? Every cell in the table must be a different object. You aren't using the same cell object for every row, are you? > When I delete a few rows, then add a new one, I crash when I try to set the > cell's UILabel (right after the cell reuse): > > cell.textLabel.text = myName.titre; Backtrace? > I turned on zombies, and I checked with the debugger, and the textLabel's > _text is the deallocated instance > (myName.titre is good). This may be a red herring as the state of _text should not effect the ability to assign the property value, generally speaking. > *** -[CFString class]: message sent to deallocated instance 0x17c370 > Since I'm not handling the cell's contents myself, I don't understand how > the textLabel can become garbage. > the text field is supposed to be copied on assignement... Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
