Search code examples
iosobjective-cuisearchdisplaycontroller

Frustrating issue with UISearchDisplayController


I've been working on adding search bars to my app, and have run into a problem using the UISearchController. For the most part things are straightforward, and is 95% working (the 5% is where hopefully you come in :)

I know it's something with my methodology since I've managed to reproduce the problem with a very small xcode project with just a table view controller, a search bar, and a segue to a detail window.

In a nutshell, I can enter search text, it filters the results properly, I can click on a row, it segues to the detail VC properly - so far so good.

However, when I return from the detail window, the rows in the search results are blank. Important to note that the number of rows is correct - it's just that they're blank

Does anyone know what the heck is going on here? It's surely something silly, but I've run out of ideas. The super-simple xcode project is available as well, which may be easier to understand than my lame explanation above.

As usual, thanks in advance for any assistance!


Solution

  • It appears this issue is specifically related to the iOS8 preview. Compiling with the official XCode and iOS7 runs the example just fine.

    Thanks to Antzi