cellForRowAt indexPath распихать по ячейкам. Как это правильно делать?
                  
                  
                  
                  
                  
                  С массивом работает такой ход:
                  
                  
                  
                  
                  
                          func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
                  
                  
                          let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
                  
                  
                          cell.textLabel?.text = dict2[indexPath.row]
                  
                  
                          return cell
                  
                  
                      }
                  
                  
                  
                  
                  
                  
                  
                  
                  Со словарем ругается на ambiguous reference to member 'subscript'.
                  
                  
                
dict2[dict2.keys[indexPath.row]]
запили массив словарей
Обсуждают сегодня