views:

35

answers:

1

I have an UITableView whose rows can be deleted. this table view has a search bar at the top. the problem is: if search was used, application crashes when I try to delete any row from the table view. there is no information in the debugger console. all I have is function stack from the debugger:

alt text

Any ideas what it can be?

UPDATE 1: crash happens only if I return UISearchBar is a header view for UITableView's section.

UPDATE 2: contacts Apple DTS and they confirmed this is an SDK bug.

A: 

I am not sure what cause your problems but usually for me, I remove the object from the Data Source (usually, the NSArray that fills your table) and call [tableView reloadData];

vodkhang
this approach removes deleted cell immediately with no animation. I'd like to animate row deletion
sgosha