UITableview not visible the last cell when scroll down

后端 未结 5 971
情话喂你
情话喂你 2020-12-08 08:39

I\'m very new to iOS. I have a UITableView that filled with many custom cells, but the bottom cell is is not visible properly when scroll down.my Y value of the UITableView

5条回答
  •  鱼传尺愫
    2020-12-08 09:08

    it is because you set your tableview's frame wrong, if your view has a navigation bar , usually use this code:

    CGRect frame = self.view.bounds;
    frame.height -= 44;
    

    44 is the height of your navigation bar.

提交回复
热议问题