Get height of UITableView without scroll bars

前端 未结 4 1575
野趣味
野趣味 2021-01-31 02:25

I need to get the full height of a UITableView (i.e. the height at which there would be nothing more to scroll). Is there any way to do this?

I\'ve tried

4条回答
  •  离开以前
    2021-01-31 03:32

    Try passing in a different CGSize parameter instead of CGSizeZero. The sizeThatFits: method uses that parameter to calculate its result. Try passing in self.view.size from whatever class is making that call.

提交回复
热议问题