所以我想知道是否可以将类型保存在变量中,以便稍后在同一函数中使用。我的代码如下:functableView(_tableView:UITableView,cellForRowAtindexPath:IndexPath)->UITableViewCell{guardletobject=array.item(at:indexPath.row)else{fatalError("Couldnotretrievethetableobject")}ifobject.displayOnLeft{guardletcell=tableView.dequeueReusableCell(withIdenti