iphone - Remove UISearchBar on tableView click -
I have a UISearchBar that is pressed by a button when some other view is subsided by. When it loads, it looks like the following (decrease the red scrabbles):
I would like to remove the UISearchBar view from the parent wind controller, when the table view ( Areas with Red Scribles) are clicked and empty (no search has been done yet). I find it a tough time to find out the best way to do this.
I have tried to insert a transparent button in that section and have added it as a subview in the search bar, however, the button is below the table view area, so when the table view is clicked , Then the search bar loses focus and Ubutan can only be reached by then.
Do anyone know that when I click below the empty table view, how can I remove the search bar from the original view controller?
Thank you.
To bring the transparent button up and touch it first, [button .parentView bringSubViewToFront: use the button]
.
>
In the search bar representative, and to deal there from there.
Comments
Post a Comment