didSelectRowAtIndexPath not working on sdk 3.0

為{幸葍}努か 提交于 2019-12-25 01:26:02

问题


I was working on an app in SDK 2.x and everything was working fine, but now I have updated my SDK to 3.0 and found:

didSelectRowAtIndexPath 

of tableview is not working.

Anyone know why this is happening?


回答1:


The Table View Programming Guide says:

"You can control whether rows are selectable when the table view is in editing mode by setting the allowsSelectionDuringEditing property of UITableView. In addition, beginning with iPhone OS 3.0, you can control whether cells are selectable when editing mode is not in effect by setting the allowsSelection property."

So if things changed from 2.2.1 to 3.0 perhaps you have allowsSelection set to NO.



来源:https://stackoverflow.com/questions/1038000/didselectrowatindexpath-not-working-on-sdk-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!