IOS 7不再响应uitableviewcell中的uitableview
下面的代码将IOS 7不再响应uitableviewcell中的uitableview,ios,ios7,uitableview,Ios,Ios7,Uitableview,下面的代码将UITableView封装在UITableCell中,因此它基本上是表中的表。这在iOS6及以下版本中工作正常,但在iOS7中,我无法滚动或按入次视图 根据下面的代码,它基本上显示良好,但所有触摸都发送到主表,而不是单元格内的表 以前它允许两者滚动 下面是加载第二个表的代码。tableViewCellWithTableView类只是一个tablecell类,包含第二个表的路径等 [[NSBundle mainBundle] loadNibNamed:@"TableViewCell"
UITableView
封装在UITableCell
中,因此它基本上是表中的表。这在iOS6
及以下版本中工作正常,但在iOS7
中,我无法滚动或按入次视图
根据下面的代码,它基本上显示良好,但所有触摸都发送到主表,而不是单元格内的表
以前它允许两者滚动
下面是加载第二个表的代码。tableViewCellWithTableView类只是一个tablecell类,包含第二个表的路径等
[[NSBundle mainBundle] loadNibNamed:@"TableViewCell" owner:self options:nil];
tableViewCellWithTableView.data = myData;
tableViewCellWithTableView.backgroundColor = [UIColor clearColor];
[tableViewCellWithTableView setBackgroundView: nil];
tableViewCellWithTableView.tableViewInsideCell.allowsSelection = YES;
tableViewCellWithTableView.tableViewInsideCell.separatorStyle = UITableViewCellSeparatorStyleNone;
tableViewCellWithTableView.tableViewInsideCell.separatorColor=[UIColor clearColor];
[cell.contentView addSubview:tableViewCellWithTableView];
[cell setNeedsDisplay];
你用哪种方法来做这件事?它不起作用,因为它是糟糕的设计。它在iOS6上工作是一个错误。也许集合视图更适合您的设计。