disable scrolling in a UITableView (iPhone SDK 3.0)

前端 未结 6 1987
一向
一向 2020-12-15 18:44

I\'m trying to disable scrolling in a UITableView when editing a UITextField embedded in a UITableViewCell. This is just to prevent th

6条回答
  •  孤城傲影
    2020-12-15 19:34

    Did you try using self.tableView.scrollEnabled = NO;?

    I've often tried that code from the web didn't work, simply because of a lack of the prefix self. I just tried this out without a problem.

    I don't know if this work when turning it on and off dynamically. It does at least work for permanent settings when initializing the object...

提交回复
热议问题