didSelectRowAtIndexPath在sdk 3.0上不起作用 [英] didSelectRowAtIndexPath not working on sdk 3.0

查看:101
本文介绍了didSelectRowAtIndexPath在sdk 3.0上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SDK 2.x开发一个应用程序,并且一切正常,但是现在我将SDK更新到3.0,并发现:

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 

tableview无效。

of tableview is not working.

有人知道为什么会这样吗?

Anyone know why this is happening?

推荐答案

表格视图编程指南说:

您可以通过设置UITableView的allowSelectionDuringEditing属性来控制表格视图处于编辑模式时行是否可选。此外,从iPhone OS 3.0开始,您可以通过设置allowSelection属性来控制在无效编辑模式时是否可以选择单元格。

"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."

因此,如果将内容从2.2.1更改为3.0,则可能具有allowS选举设置为否。

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

这篇关于didSelectRowAtIndexPath在sdk 3.0上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆