I use a dynamic tableViewController
. I implement the numberOfSection
to return 4, and the numberOfRowInSection
return 1. These are the only changes I made for the blank TableViewController
. But when I run it on simulator, it shows multiple cells, which I expected to be only four cells. Why is that?
Note: If I change the height of each cell to let the screen only fit four cells at a time, it will work fine since it won't let be me scroll down. So I guess is the tableViewController
always try to fill the screen no matter how many cell it should display?