UISearchDisplayController changing row height

Posted by tewha on Stack Overflow See other posts from Stack Overflow or by tewha
Published on 2010-04-14T17:51:38Z Indexed on 2010/04/14 17:53 UTC
Read the original article Hit count: 456

I've set my UITableView row height to in Interface Builder to 54.0. I have a UISearchDisplayController on that view. When the user taps the search bar in it, the table resizes properly. However, when they start typing (and actually doing the search) the row height decreases. It stays wrong until the search taps Cancel.

I could find no documentation on this behavior on Apple's site.

I've tried setting the row height in UISearchDisplayDelegate delegate calls. This might be the right approach, but I don't know the details and couldn't get it ti work.

I've also tried implementing -- (CGFloat)tableView:(UITableView *)tableView -heightForRowAtIndexPath:(NSIndexPath *)indexPath;. This worked, but I have thousands of entries in this list and can't take the performance hit.

What's the right way to fix this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uisearchdisplaycontroller