UISearchDisplayController inside popover - bad animation on cancelling search?

This might be a bug worth reporting . There are actually a surprising number of bugs in UIPopoverController. At least 3 that I know about separate from this, none of which are planned to be fixed anytime soon (I asked several engineers at WWDC this year).

One of my bugs was actually related to the UISearchDisplayController in a popover, specifically how it handles filter buttons if the Popover is in the detail view (it renders them in the worst possible way, on the same line as the text view and completely unusable).

Up vote 2 down vote favorite share g+ share fb share tw.

My iPad app uses a popover to perform some searching. The search results are handled using a UISearchDisplayController, and I am having some trouble removing some little graphical artefacts. My popover starts out looking like this: When you click inside the search bar, the popover expands (animated) to: All good so far... typing in the search field overlays a new table view showing the results of your search term.

But if you don't type anything into the search field, the overlay stays translucent, as above. The problem then comes when you click the cancel button next to the search field. A visual artefact appears at the bottom of the table view: an area the same height as one of the table view cells goes completely clear immediately, while the rest of the overlay animates to 0 alpha.

The screenshot below is as close to the start of the animation I could get: The popover also resizes to the original size in my case, although the artefact remains even if there is no resizing. Given that all the important functionality of the search is handled by the UISearchDisplayController, I'm not sure what to change to solve this problem. Any ideas?

Ios ipad uisearchbar uipopovercontroller uisearchdisplaycontroller link|improve this question edited May 14 '11 at 20:56 asked May 14 '11 at 20:35StuDev3,44021031 77% accept rate.

This might be a bug worth reporting. There are actually a surprising number of bugs in UIPopoverController. At least 3 that I know about separate from this, none of which are planned to be fixed anytime soon (I asked several engineers at WWDC this year).

One of my bugs was actually related to the UISearchDisplayController in a popover, specifically how it handles filter buttons if the Popover is in the detail view (it renders them in the worst possible way, on the same line as the text view and completely unusable).

Yes I have encountered the scope bar issue also, and as much as I would like to include one in my own search interface, I don't really have time to implement a convincing substitute of my own. – StuDev Jun 26 '11 at 12:11 I think this question has been up long enough that I should submit a bug report as you suggest - I'll accept your answer. – StuDev Jun 26 '11 at 21:27 Sorry I couldn't give you better news.

If it's any help, I'm partway through reimplementing PopoverController. It probably won't be quite as pretty as Apples, but I already have the search and filter bar working correctly (haven't made it to the results table and shadowbox yet). If you check back on my blog it'll be posted there when complete, under an MIT license.

– RyanR Jun 26 '11 at 21:42 No worries, and thanks for the help. I may check that out. – StuDev Jun 26 '11 at 21:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions