0

Possible Duplicate:
UITableView set to static cells. Is it possible to hide some of the cells programmatically?

Using storyboards, a UITableView can be laid out entirely in Interface Builder by changing the content mode to "Static Cells" instead of "Dynamic Prototypes." This is extremely useful in creating certain types of UIs, but it seems to have its limitations.

I want to lay out a layout using static cells, but I want a portion of the table view to show/hide itself based on a switch in another table view cell. Is this possible using static cells, or will I have to go with the traditional method of doing this?

Community
  • 1
  • 1
Alexis King
  • 43,109
  • 15
  • 131
  • 205

1 Answers1

1

You can try the following solution to hide the cells: UITableView set to static cells. Is it possible to hide some of the cells programmatically?

and then show/hide them with an on/off BOOL.

Community
  • 1
  • 1
Lawrence Wu
  • 212
  • 1
  • 2
  • 12