Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var listCursosNovos: [Cursos] = []
- for i in 0..<JSON.count{
- var resultadoWS = JSON[i] as [String:AnyObject]!
- curso.codcurso = resultadoWS?["COD_CURSO"] as? String
- //Here I see that 'curso' comes as I wanted it
- print("Add curso: ",curso)
- self.listCursosNovos.append(curso) //Here is the problem
- }
- {codcurso = "Zezinho"}
- {codcurso = "Huginho"}
- {codcurso = "Luizinho"}
- print("The final list is:",self.listCursosNovos)
- {codcurso = "Luizinho"}
- {codcurso = "Luizinho"}
- {codcurso = "Luizinho"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement