Swift3 是否键入“[[string:string]]”?没有下标成员

Swift3 是否键入“[[string:string]]”?没有下标成员,swift3,tableview,Swift3,Tableview,我试图从另一个屏幕向表视图显示信息,但收到以下错误消息: 是否键入“[[string:string]]”?没有下标成员 更改此代码- cell.textLabel?.text = userTest[indexPath.row] cell.textLabel?.text = userTest![indexPath.row] 遵守这一准则- cell.textLabel?.text = userTest[indexPath.row] cell.textLabel?.text = userTes

我试图从另一个屏幕向表视图显示信息,但收到以下错误消息:

是否键入“[[string:string]]”?没有下标成员

更改此代码-

cell.textLabel?.text = userTest[indexPath.row]
cell.textLabel?.text = userTest![indexPath.row]
遵守这一准则-

cell.textLabel?.text = userTest[indexPath.row]
cell.textLabel?.text = userTest![indexPath.row]

不要使用可选的作为表视图控制器的数据源数组。那会解决你的问题。和–无关–不要将UITableViewCell桥接到UITableViewCell。作为UITableViewCell删除。@vadian-你能告诉我,你是什么意思吗?声明你的数据源数组为非可选的,没有问号。填充数据源数组后,您必须在表视图的某个位置调用reloadData。是否可以发布一些userTest示例数据这是userTest:可选[[2017-09-04 13:51:39:/var/mobile/Containers/data/Application/9BF9AA91-18FC-41F6-8F72-A9F5BF04D969/Documents/audioForReport.m4a]-很抱歉,仍然无法很好地显示表视图