Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/121.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IOS 7不再响应uitableviewcell中的uitableview_Ios_Ios7_Uitableview - Fatal编程技术网

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上工作是一个错误。也许集合视图更适合您的设计。