Reputation: 105
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:
Upvotes: 3
Views: 79
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
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