Preventing UITableView from scrolling?

前端 未结 2 1020
既然无缘
既然无缘 2020-12-16 19:48

This seems like it\'d be a common question, so apologies if it\'s been asked before.

I\'m trying to figure out how to prevent UITableView from scrolling in my iPhone

2条回答
  •  情歌与酒
    2020-12-16 20:34

    UITableView is inherited from UIScrollView so Use scrollEnabled property of UIScrollView

    self.tableView.scrollEnabled = NO
    

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html#//apple_ref/occ/cl/UIScrollView

提交回复
热议问题