user3462448
user3462448

Reputation: 361

Unknown class <myClass> in Interface Builder file

i get this error whenever i try to segue from one viewController to another. theres no code and ive been going through google pages and questions on here for hours and i cannot find a solution.

Upvotes: 0

Views: 40

Answers (1)

EBDOKUM
EBDOKUM

Reputation: 1846

You experience this problem because:

  • You might have assigned a class to a View Controller in .storyboard file, which does not exist
  • You might have assigned a class to a View Controller in .storyboard before you created it and thus it failed to automatically set an appropriate Module.
  • You might have assigned class to a VC, which does not inherit from UIViewController.

Solution: Reassign VC class with help of the dropdown list OR manually chose "Current - Project Name" module from Module dropdown list. Make sure your custom class "extends" (inherits from) UIViewController.

Upvotes: 1

Related Questions