Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.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
iphone在一个视图中显示多个uitableview_Iphone_Objective C_Uitableview - Fatal编程技术网

iphone在一个视图中显示多个uitableview

iphone在一个视图中显示多个uitableview,iphone,objective-c,uitableview,Iphone,Objective C,Uitableview,是否有显示多个UITableView功能的示例项目 我非常感谢您的指导或帮助。查看此示例项目,但您需要有一个帐户才能下载: 想法很简单,您只需区分将触发代理的UITableView,例如: -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if (tableView == tableView1) { [FirstDataSource count];

是否有显示多个
UITableView
功能的示例项目


我非常感谢您的指导或帮助。

查看此示例项目,但您需要有一个帐户才能下载:

想法很简单,您只需区分将触发代理的
UITableView
,例如:

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
{
  if (tableView == tableView1)
  {
    [FirstDataSource count];
  }
  else if (tableView == tableView2)
  {
    [SecondeDataSource count];
  }
}  

检查此示例项目,但您需要有一个帐户才能下载它:

想法很简单,您只需区分将触发代理的
UITableView
,例如:

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
{
  if (tableView == tableView1)
  {
    [FirstDataSource count];
  }
  else if (tableView == tableView2)
  {
    [SecondeDataSource count];
  }
}  

请查看我关于此主题的博文:


基本上,您可以创建一个(第二个)UITableView并将其放在另一个UITableView的标题中(或放在适合您的场景的任何位置)。然后创建一个UITableViewController,并将其与标题中的UITableView连接起来

请查看我关于此主题的博文:


基本上,您可以创建一个(第二个)UITableView并将其放在另一个UITableView的标题中(或放在适合您的场景的任何位置)。然后创建一个UITableViewController,并将其与标题中的UITableView连接起来

这是一种相当不常见的设置,因为您(通常)一次只能激活一个UITableView中的一个单元格,因此您可以使用具有多个部分的UITableView来提供“多个”表的错觉。您试图实现什么?这是一个相当不常见的设置,因为您(通常)一次只激活一个UITableView中的一个单元格,因此您可以使用具有多个部分的UITableView来提供“多个”表的幻觉。你想达到什么目的?