How to disable scrolling in UITableView table when the content fits on the screen

后端 未结 9 2422
孤街浪徒
孤街浪徒 2020-12-07 07:36

I have a few (grouped style) tables in my iphone app (only on part of the screen and added with Interface Builder though, not subclassed from UITableViewC

9条回答
  •  孤城傲影
    2020-12-07 08:02

    // Enable scrolling based on content height self.tableView.scrollEnabled = table.contentSize.height > table.frame.size.height;

提交回复
热议问题