0

i get an error when i add UIScrollViewDelegate with UITableViewController so i tried every thing i know but nothing worked `

import UIKit

class TableViewController: UITableViewController, UIScrollViewDelegate {

help me
(sorry for my bad english)

devzaid
  • 35
  • 2
  • 13

2 Answers2

0

UITableViewController has already contain UIScrollViewDelegate. You need set

tableview.delegate = self
tableview.dataSource = self

and after you can using all function of UIScrollViewDelegate protocol

Vu Dao
  • 1
  • 4
0

UITableViewController has already contains UIScrollViewDelegate, UITableViewDelegate, UITableViewDataSource

If you want to use UIScrollViewDelegate methods, just override it the do everything you want.

Kingiol
  • 1,145
  • 9
  • 9