I'm being helped with this: tableViews with dictionary
I was able to reproduce all. But I need my dictionary to be like this:
var channelsCategorized = [String:[String:Int]]()
Now to iterate with every value from the dictionary the link above says to do this:
for (key,value) in channelsCategorized{
structArray.append(channelsStruct(section: key, name: value))
}
This is if my dictionary was [String:[String]] but it's [String:[String:Int]]. I need it to add to the struct section, name and id. My dictionary it's something like this: [movies:[channelName,idChannel]]
This is my struct:
struct channelsStruct {
var section: String!
var name: [String]!
var channelId: String!
}
and this is my struct array:
var structArray = [channelsStruct]()