..Please Help..thank you.. :D
Error: Use the unresolved identifier 'indexPath'
import Foundation
class BackTableVC: UITableViewController{
var TableArray = [String]()
override func viewDidLoad() {
TableArray = ["HOME","MEN","WOMEN"]
}
func tableView(tableView: UITableView, numberofROwsInSection section: Int) -> Int {
return TableArray.count
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as UITableViewCell
cell.textLabel?.text = TableArray[NSIndexPath.row]
return cell
}
}