0
I’m not getting my upgrade UITableView
with the data contained in Array:
var linha: NSArray = [["Categoria": "Desenvolvimento para IOS", "Imagem": "swift.png"],["Categoria": "Programação orientada a objeto", "Imagem": "php.png"]]
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
return posts.count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! HomeViewCell
cell.titulo.text = //
cell.imagem.image = //
return cell
}
Any idea how to do that?