Storyboard Doesn't Contain a View Controller With Identifier

Storyboard doesn't contain a view controller with identifier

Fixed! Not only the identifier in the segue must be set, in my case DrivingDetails, but also the identifier in my tableViewController must be set as DrivingDetails...check my picture:

Sample Image

I also removed the navigation view controller so now the 2 table view controllers are connected directly with a "push" animation.

*****EDIT for XCODE 7.0*****

you have to set the storyboardId(in this case the viewController is embedded in a Navigation controller:

let lastMinVc  = mainStoryBoard.instantiateViewControllerWithIdentifier("lastMinuteNavController") as! UINavigationController

Sample Image

Storyboard doesn't contain a view controller with identifier 'goToC'

Xcode 8.2.1

I thought CameraViewController is in your Main storyboard.

In Main story board first select yellow button top of the appropriate viewController and goto identity inspector -> identity -> Storyboard ID enter your view controller identifier for this case goToC

Sample Image

Storyboard doesn't contain a view controller with identifier' only on Device

let storyboard = UIStoryboard(name: "Main_iPhone", bundle: nil)
let vc = storyboard.instantiateViewControllerWithIdentifier("POIListViewController") as! UIViewController

EDIT

Just CLEAN your project (CMD+SHIFT+K) as you have change the storyboard name I think.

Storyboard doesn't contain a view controller with identifier only on TestFlight

You've probably already found an answer by now and I suspect there are multiple ways to get there. But for other readers who've come here to solve this frustrating issue, this is what worked for me:

  1. Open your storyboard and click the offending scene. If you check the Identity inspector, you may see something like this:
    module-not-entered-correctly

  2. Click inside the field Module and explicitly select the module, even though it already seems to be correctly selected. It will now look like this:
    module-entered-explicitly

  3. Clean, build and run.

Storyboard () doesn't contain a view controller with identifier 'GroupProfileViewController''

  1. Make sure you set the identifier of the viewcontroller, lets say "GroupProfileViewController"
  2. Make sure this code is NOT in viewDidLoad(). If you have, consider doing this in viewDidAppear()

Present the code like this example:

if let storyboard = storyboard{
let vc = storyboard.instantiateViewController(withIdentifier: "GroupProfileViewController") as! GroupProfileViewController
self.present(vc, animated: true)
}

Storyboard doesn't contain a view controller with identifier 'TimeController'' error in Swift

Ensure you have inserted TimeController as the Storyboard ID in your storyboard.

Sample Image

Storyboard doesn't contain a view controller with identifier ... when using multiple storyboard files

You have to create the new storyboard instance, and get the LoginViewController StoryboardId

//Here, create an instance of the second storyboard excluding the extension(.storyboard), 
var storyBoard = UIStoryboard(name: "SecondStoryBoard", bundle: nil)

//Here instantiate view controller with the storyboard instance,
//Before that create a storyboardId for the corresponding view controller.
var loginVC = storyBoard.instantiateViewControllerWithIdentifier("loginViewController") as LoginViewController

//Here, the storyboard identifier is "loginViewController" which is created in the respective view controller's "Identity" inspector

Hope this helps, Happy Coding :)

Storyboarddoesn't contain a view controller with identifier

Make sure following field of the PageViewController is filled with identifier "PageViewController":

Sample Image



Related Topics



Leave a reply



Submit