Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct data to string #293

Open
AMBIENTE1 opened this issue Jun 4, 2024 · 0 comments
Open

Struct data to string #293

AMBIENTE1 opened this issue Jun 4, 2024 · 0 comments

Comments

@AMBIENTE1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant