pickerData = [[["A"], ["i","ii","iii"]],[["B"],["iv","v","vi","vii"]]]
}
错误:上下文类型'字符串'不能与数组文字一起使用 请告知如何使用数组
答案 0 :(得分:0)
必须对异类文字集合类型进行处理:
试试这个:
let pickerData: [[[String]]] =
[
[
["A"],
["i","ii","iii"]
],
[
["B"],
["iv","v","vi","vii"]
]