in my app I have a table view that is populated by a Search Bar (I mean, the search Bar is querying CoreData and the Table View is filled by the results).
Right now, when entering this part of the app, I have an empty Table View waiting for the user to input something in the search bar.
What I would like is to display an alternative view when the table has no results. I've googled a lot since yesterday and the only solution I found is this: A UITableView with an "empty" view
...but I cannot make it work. If someone has some hint, or can point me to some URL to study the solution, would be great and appreciated :)
Thx for your time guys
preguntado el 08 de noviembre de 11 a las 15:11
You can add the alternate view below your tableview. When there is no text in the search bar, make the tableview hidden so that the view below it shows through. When you have search results to display, make the alternative view hidden and make the tableview's hidden property to FALSE.