Reputation: 899
I'm trying to create combobox type interface so that user can select an item from a list.
But I'm unable to hide the table after the selection is made. Any idea how that can be done ?
thx
Upvotes: 4
Views: 4387
Reputation: 794
Here after your selection done.
In your Didselectrow Method You can hide your Tableview with property of Hidden like.
tableview.hidden = true;
and When you click your combobox that time you should show again your tableview.
tableview.hidden = false;
Thanks.
Upvotes: 3
Reputation: 4289
self.tableView.hidden = YES;
This may help you in solving your problem.
Upvotes: 1
Reputation: 2288
You can set the tableView.hidden
property or even better, change the frame property to CGRectZero()
Upvotes: 4