我有一个包含两个部分的tableView的视图控制器。第1节只有一行,第2节有一些没有数量限制的数组。根据UIPickerView选择更新UITableView内容
当我点击第1节中的单元格时,我有一个pickerView出现在一个Action Sheet中。无论我在pickerView上选择什么组件,都将成为第1节单元上的标题。
现在我的问题,
可以将我的tableView的第2节的内容依赖于细胞的第1节的标题文字?
例如:
if Section 1's text is = "String A", Section 2's contents should be = "Array A"
if Section 1's text is = "String B", Section 2's contents should be = "Array B"
if Section 1's text is = "String C", Section 2's contents should be = "Array C"
if Section 1's text is = "String D", Section 2's contents should be = "Array D"
等等...
此外,我想的tableView如我所需的字符串驳回pickerView来更新其内容。 一些示例代码/参考非常感谢。