iphone - 当内容适合屏幕时,如何在 UITableView 中禁用滚动?

标签 iphone ios tableview

当内容适合屏幕时,如何在 UITableView 中禁用滚动行为。

最佳答案

self.tableView.scrollEnabled = NO;

或者这个:如果你不希望它反弹:

tableView.alwaysBounceVertical = NO.

关于iphone - 当内容适合屏幕时,如何在 UITableView 中禁用滚动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18852449/

相关文章:

iphone - 将字符串转换为 NSDate 的正确方法?(iphone)

iphone - UIWebView 自动旋转破坏网页 View 内容(内有截图)

ios - 表格 View 单元格默认背景颜色 - 什么设置默认颜色?

ios - 在editActionsForRowAtIndexPath中如何indexpath.row = -1

iphone - UIScrollView 看不到 ScrollBars/Indicators。

iphone - 如何在Android中实现iPhone标题栏

iOS 9.0 Xcode 8.3.3 MfiBtPrinterConnection.h 传输蓝牙 maxLength Zebra ZQ520

iOS 12.2 WKWebview : unable to load local html page after loading https or http url

ios - 为什么我的 inputAccessoryView 在向后导航时消失了?

ios - 数组值未显示在自定义表格单元格中