开发者

UITableView will not scroll or select

I don't understand. My application suddenly stopped letting any uitableviews scroll or be selected. I can set tables to edit mode and delete cells, but for some crazy reason it's like I can't interact with tableviews. Of course the delegate, datasource, delegate met开发者_运维知识库hods, and everything are hooked up. I even did the same thing in another project and it worked perfectly.

Does anyone know any reason that a table view would stop responding?


Make sure 2 things are checked:

[tableview setUserInteractionEnabled:YES];
[tableView setScrollable:yes];

Place a breakpoint in the cell for row at index path see whats happening.

Are the cells displaying anything. Evreything in IB hooked up including datasource and delegate?


Go to IB, make sure your UITableView has User Interaction Enable selected?


You didn't happen to remove or override any swipe and scroll gesture from your UITableView did you?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜