I understand the error(Unknown class PFQueryTableView in Interface Builder file), but just can't give it a class. I watched one of Vea Software's tutorial on PFQueryTableViewController, and didnt mention anything about this, it worked with him, but doesn't work now. I don't know exactly where this class should be, I tried adding it into my PFQueryTableViewController class and add PFQueryTableView next to it but i just get errors. Any idea on how to solve this?
Asked
Active
Viewed 55 times
0
Max Kortge
- 527
- 6
- 23
-
Looks like your VC class is PFQueryTableViewController. You should paint a UITableViewController in IB, and set its custom class to PFQueryTableViewController. There's no need to change its table view to a PFQueryTableView (as far as I know). – danh Jan 06 '16 at 23:11
-
What exactly do you mean by paint a UITableViewController in IB? (I'm reasonably new to Swift) – Max Kortge Jan 06 '16 at 23:32
-
In the storyboard, when you add a view controller (paint), the thing you should drag (from the lower-left object palette) is a UITableViewController. – danh Jan 07 '16 at 01:05
-
Thats what i did during the tutorial. He mentioned nothing about setting the tableview, and I'm getting an error for not giving it a custom class? – Max Kortge Jan 07 '16 at 01:06
-
Right, you shouldn't have to setup a class for a view. Only for the viewController. – danh Jan 07 '16 at 01:08
-
Thats just what I'm stuck, Xcode wants me to. – Max Kortge Jan 07 '16 at 01:22
-
Possible duplicate of [XCODE 7.1 Swift 2 Unknown class in Interface Builder file](http://stackoverflow.com/questions/33033129/xcode-7-1-swift-2-unknown-class-in-interface-builder-file) – bummi Mar 11 '16 at 07:28