UISearchController Tutorial: Getting Started | Kodeco, the new raywenderlich.com

In this tutorial, you’ll build a searchable Candy app based on a standard table view. You’ll add table view search capability, dynamic filtering and an optional scope bar using UISearchController, UISearchBar and friends.


This is a companion discussion topic for the original entry at https://www.kodeco.com/4363809-uisearchcontroller-tutorial-getting-started

This tutorial was incredibly helpful, Thanks!

I’m having an issue when tapping on one of the resulting rows after a search has been made. The segue works fine, but when I return from the Row’s Detail view to the main Table, the search bar still shows the search text, however the table has returned to its original state.

The main difference in my setup is that I am starting from a Table View (which is not in a Navigation controller) then the Row Details open in another Table view which is nested in a Navigation Controller.

I haven’t yet found a reason for this behavior in the code. Do you have any ideas?

Hi Freedlun,

Thank you for reaching out and providing feedback on the tutorial! We’re glad to hear that it was incredibly helpful to you.

Regarding the issue you’re facing when tapping on one of the resulting rows after a search, it sounds like a discrepancy between the state of the search bar and the table view. Since you mentioned that you’re starting from a Table View that is not within a Navigation Controller, and the Row Details open in another Table View nested in a Navigation Controller, there might be a potential conflict there.

To better assist you with this specific scenario, I will ping the author/instructor of the tutorial and the FPE (Forum Platform Expert) in your forum post. Their expertise in this area will be valuable in helping you pinpoint the cause of this behavior in your code.

Once again, we appreciate your positive feedback and your engagement in the forum. Don’t hesitate to ask any further questions or provide additional details that might help us assist you more effectively.

Best regards.

Cc @lorenzoboaro Your input on this would be highly appreciated?