user390687
user390687

Reputation: 899

How to hide the entire UITableView

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

Answers (3)

Maheta Dhaval K
Maheta Dhaval K

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

Aswathy Bose
Aswathy Bose

Reputation: 4289

self.tableView.hidden = YES;

This may help you in solving your problem.

Upvotes: 1

nicktmro
nicktmro

Reputation: 2288

You can set the tableView.hidden property or even better, change the frame property to CGRectZero()

Upvotes: 4

Related Questions