swift 2.0 one array per cell

I’m a noob and been learning swift.
I have seen a lot of tutorials about extracting JSON data to tableView.
When i try it myself. somehow the datas are separated in each cells.

from what i’ve learned could not figure out how to put JSON array data to one cell. not in each Cells. example JSON lotto results 1,5,3,14,7,40
it appears in tableview each cells
1
5
3
14
7
40

is this because of i use array.count in numberOfRowsInSection?
is this because of i used wrong array?

here is my what i did in cellForRowATIndex
theResult is array i want to print in a cell. not like the image below.
Thanks in advanced!

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    var cell = UITableViewCell()

    var Results = theResult[indexPath.row]

    cell.textLabel?.text = Results

    return cell
}


Download swift.2.0.one.array.per.cell.zip
Direct Link


Download


Download swift.2.0.one.array.per.cell.zip
Mediafire


Download


Download swift.2.0.one.array.per.cell.zip
Filecore


Download

Both comments and pings are currently closed.

Comments are closed.