0
I’m getting this message below while trying to make a Swipe on a cell of a Tableview. Remembering that I am doing this in a viewcontroller file and not in a tableViewController. It is possible?
Method does not override any method from ist superclass
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {
Someone can give me a light?
You only need to override when subclassing Uitableview, as Voce himself said is Uiviewcontroller, so just remove
override
and connect your code (Uiviewcontroller) with a Iboutlet in your Uitableview– Leo Dabus
The problem is, it won’t work the way I want it to without the override. One question, I can create the separate class for the tableview inside a viewcontroller?
– Leu Oliveira