【发布时间】:2011-01-17 02:26:12
【问题描述】:
我在一组tableview 中显示从 XML 解析的内容。我想禁用它的点击事件(我根本不能点击它) 该表包含两个组。我只想禁用第一组的选择,而不是第二组。点击第二组第一行navigates到我的管player view。
我怎样才能只选择特定的组或行?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if(indexPath.section!=0)
if(indexPath.row==0)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:tubeUrl]];
}
谢谢。
【问题讨论】:
标签: ios iphone objective-c uitableview