79t97g
79t97g

Reputation: 105

How do you change the class of a TableViewController?

I have been trying to change the class of a TableViewController in the identity of it, but when I type in the name of the custom class that I want to change it to, it reverts back to UITableViewController

Here is what i'm talking about:

enter image description here

Upvotes: 3

Views: 79

Answers (2)

Rob
Rob

Reputation: 438232

Is the class you're trying to specify definitely a subclass of UITableViewController? And it's included in "Compile Sources" in the "Build Phases" of your Target's settings? We all change the class all the time, without incident, so this is curious.

If worst comes to worst, restart Xcode, and if that doesn't do it, reboot your Mac. Whenever you get unexplainable Xcode behavior, that's one of the steps we have to resort to nowadays. Sometimes Xcode get's weird. It's frustrating.

Upvotes: 1

Vishal
Vishal

Reputation: 8256

ALso give UITableViewController name in field of Storyboard ID & then check. Whatever you

change name of class every time also give same name in Storyboard ID field also.

Upvotes: 0

Related Questions