如何从一个viewcontroller到一个tableviewcontroller

我有一个UIViewController与3个图像和3个button。 我需要它,所以当你按下一个button时,它会显示UITableViewController中可能填充UIImages项目列表。 但是,每个列表将根据按下的button而不同。

我已经尝试使用segues和模式function,没有运气。 谁能帮我?

制作3组图像数组,在每个button上点击发送你对应的数组,然后通过访问每一个数组的图像为每个图像设置图像cell.imageview.image