Skip to content

Struct data to string #293

Description

@AMBIENTE1

Hi there, please, If I have data in struct like this:

var ucetPlatby = [struct_ucetPlatby]()

 struct struct_ucetPlatby: Codable {
        let id: Int
        let trasaid: Int
        let cena: Decimal     
        }

//print: [Keshu.UzavreneUcty.struct_ucetPlatby(id: 1, trasaid: 1, cena: 67), Keshu.UzavreneUcty.struct_ucetPlatby(id: 2, trasaid: 2, cena: 134), Keshu.UzavreneUcty.struct_ucetPlatby(id: 3, trasaid: 1, cena: 167.5)]

How can I use them for [[String]]() ??
var data = [[String]]()
cell.label.text = data[indexPath.row - 1][indexPath.column]

Header I have solved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions