view raw
user6702783 user6702783 - 9 months ago 34
Swift Question

The same issue but I cannot understand the answer

Cannot select Custom Class for Table View Controller (UITableViewController)

Someone has asked the exactly I want to ask, but I do not understand which file should I add the "@interface YOURCLASSNAME : UITableViewController" into to make customer class for uitableview Controller?

Any help appreciated.


Just choose File -> New -> File.. -> Source -> Cocoa Touch Class from menu to create a new controller as your custom controller.

enter image description here

You can also reuse a already existed one.

(also notice the answer you refer use objc syntax, which differ from swift's)