Search code examples
swiftxcode8

Could not cast value of type UIViewController to RecordDrawerController


I've duplicated a target and it's schema and I'm trying to run the project but it fails for any reason I don't know.

Here bellow I paste a capture of the error.

enter image description here

Any help with this?


Solution

  • Could not cast value of type UIViewController to RecordDrawerController

    Select the top yellow button of the appropriate view controller, then Goto Utilities -> Identity Inspector -> Custom Class -> Class and then change appropriate view controller custom class as RecordDrawerController on story board.

    enter image description here