3

I want to use the xib to setup a static UITableview. How can do to get it? I don't find the button to set tableView static or dynamic. How about use the storyboard?

jiexishede
  • 2,473
  • 6
  • 38
  • 54
  • please clarify what you mean when you say _static_ or _dynamic_ `UITableView`; you may refer to not handling user-interaction? or disable the scrolling only? or show determined amount of cells? or fixed size on the screen on each device? or what exactly do you want to make _static_ in a `UITableView`? – holex Dec 10 '15 at 10:39

2 Answers2

7

It isn't possible with xibs. If you want to use static cells in your UITableView, you'll have to use storyboard.

Nikita Ilyasov
  • 500
  • 2
  • 14
-2

Go to tableView properties and change Content to Static Cells, look at this tutorial

enter image description here

B.S.
  • 21,660
  • 14
  • 87
  • 109