0

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?enter image description hereenter image description hereenter image description hereenter image description here

Max Kortge
  • 527
  • 7
  • 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

1 Answers1

0

Have you solved your problem? If not, you can try to set it as this answer which has solved my problem: In storyboard below the Custom Class field the module is set to None. Change that to your app module or just remove and enter class again, it should set to default like this

Community
  • 1
  • 1
Raymond Liao
  • 1,799
  • 3
  • 20
  • 32