-
Notifications
You must be signed in to change notification settings - Fork 453
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
How can I display the json data in a Swift SpreadsheetView #289
Comments
The best way to do this is reorganize your data. First create a 2D Array and lay your data like you would in a CSV File.
After doing so create a table with the dimensions of your height and width of your data that is now a 2D Array and making it viewable to users or etc.. If you have any question @ me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want using SpreadsheetView to show data, from a json, in a grid but I don't know how to show them because with this pod it is necessary to invoke an array for each column. I would like to order this data from my json in the corresponding columns and also when touching a cell in a row I was taken to a view to show the related data.
Attached the code of what I have done.
The view i use to display the data
The model to download the json
`import UIKit
import Foundation
protocol ConsultaModeloProtocol: AnyObject {
func itemConsulta (LaConsulta: [DetallesConsulta])
}
var fechaPresente: String = ""
var fechaPasada: String = ""
let elToken : String = UserDefaults.standard.string(forKey: "token")!
let helper = Helper()
class ConsultaModelo: NSObject {
}
`
The details
The json response:
Specifications
The text was updated successfully, but these errors were encountered: