I recently download Xcode 7 which comes with Swift 2. Below is the error I get when I try to conform my class to UITableViewDataSource
and UITableViewDele
There is no need to indicate that you TableViewController
conforms to the two protocols because the UITableViewController
already does. So your class will as well due to the inheritance.
All you need is:
class TableViewController: UITableViewController {
}
It seems Swift2 is more strict about this than Swift is.