How can I change the space between cells in tableviewcontroller?. I have an application by using Swift. I added a tableviewcontroller which is working fine. Now my problem is if I try to change the space between the cells it is not working. I have tried the following code.
override func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 10; // space b/w cells
}
Please help me to find what the issue is?
Edit 1:
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
let a = 1;
return a;
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
let a = itemArray.count;
return a;
}