How to hide the whole UITableView

I am trying to create an interface like combobox so that the user can select an item from the list.

But I can not hide the table after the selection. Any idea how this can be done?

THX

+3
source share
3 answers

You can set the property, tableView.hiddenor even better, change the frame property toCGRectZero()

+4
source
self.tableView.hidden = YES;

This can help you solve your problem.

+1
source

.

Didselectrow Tableview Hidden .

tableview.hidden = true;

, .

tableview.hidden = false;

.

0

Source: https://habr.com/ru/post/1773582/