Josh
Josh

Reputation: 6393

How to hide a UITableView

I want to do something simple, to hide an entire TableView, something like:

self.tableView.visible=false

It is strange, but all I have found on is info on how to hide just cells/empty cells inside the table. How can I hide the ENTIRE table???

Upvotes: 0

Views: 126

Answers (3)

tounaobun
tounaobun

Reputation: 14867

You could use hidden property of UITableView.

self.tableView.hidden = true

Upvotes: 2

boidkan
boidkan

Reputation: 4731

Do this: self.tableView.hidden = true.

Upvotes: 1

wltrup
wltrup

Reputation: 798

A table view is also a view. Every view has a hidden property, so set self.tableView.hidden = true. There is no visible property.

Upvotes: 4

Related Questions