Home:ALL Converter>XCode 7 - TableViewController bug

XCode 7 - TableViewController bug

Ask Time:2015-07-04T22:30:40         Author:Bogdan Bogdanov

Json Formatter

class TestClass: UITableViewController, UITableViewDelegate, UITableViewDataSource {
code...
}

This is the old way to implement TableViewController in .swift now We receive an error:

  1. Redunant conformance of 'TestClass' to protocol UITableViewDelegate.
  2. Redunant conformance of 'TestClass' to protocol UITableViewDataSource.

And we have to remove UITableViewDelegate and UITableViewDataSource and leave only UITableViewController.

BUT now my tables are black and text inside is blue:

This happens only when you run the app on the device. TableViewController

Tested devices: iPhone 5 (iOS 8.3), iPhone 6 (iOS 8.4)

On all simulators with iOS 9 works.

I don't want to setup iOS 9 on my devices to test it, because is full with bugs.

Tested on XCode 7 beta and XCode 7 beta 2.

Author:Bogdan Bogdanov,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/31221764/xcode-7-tableviewcontroller-bug
yy