Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 204 Vote(s) - 3.55 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storyboard doesn't contain a view controller with identifier

#1
I keep getting the following error:

Storyboard (<UIStoryboard: 0x7ebdd20>) doesn't contain a view controller with identifier 'drivingDetails'

This is the code:

- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

UIViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"drivingDetails"];
controller.title = [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"name"];
[self.navigationController pushViewController:controller animated:YES];
}

I have already set the `identifier` on the `UIStoryboard` but I'm still getting this error.

![enter image description here][1]
***************************************************


[1]:
Reply

#2
While entering the identifier u have not selected proper view controller, just check once if done repeat the procedure once more.
Reply

#3
Just had this issue after adding a new VC to the storyboard but only on the device, not on the simulator. Turns out it was due to having multiple storyboard localizations - the VC was only added to the primary one. I tried removing the other localizations (one of which is the one my iPhone uses) but still had the error. In the end I had to recreate the other localizations *with* the new VC in each of them.
Reply

#4
I got same error and I could fix this by changing the following changes in my project. I have mentioned my class name in the inspector panel then the problem is solved.
Goto->right panel there Identity Inspector
In the custom class section

class:your class name(ViewController)

In the Identity section
storyboard ID:your storyboard ID(viewController Name)

After this click on Use storyboard ID option over there.That's it the problem is finished. I hope it will help you....
Reply

#5
I found it ...
click on the view controller in storyboard,
click the third icon from left on the vc attributes inspectors - the one where you set the call name
on that scereen it says 'identity' - mine was hidden , i had to click on the word identity
it then shows storyboardID - add the identifier from the code, done

Reply

#6
Use your identifier(@"drivingDetails") as Storyboard ID.
Reply

#7
Modifying "Storyboard ID" in the identity inspector (the 3rd icon to the left) should work.

If not and you're sure there's no typo, try cleaning up the project ("Product"->"Clean", or simply command + shift + K).

Reply

#8
Identity located in Identity Inspector tab named Storyboard ID for Xcode 6.3.2 and checked Use Storyboard ID option.
![enter image description here][1]


[1]:
Reply

#9
Just for future reference:

I'm developing on iOS 6 using Storyboards.

I was having the same issue, but I could not find the "Identifier" field in the inspector.
Instead, just set the field named "Storyboard ID" to what you would name the Identifier. This field can be found under the "Show the Identity inspector" tab in the inspector.

[Note - comments below indicate that some people have found that they need to (also?) set the field "Restoration ID" just below the Storyboard ID in the inspector. Clicking on "Use Storyboard ID" does not seem to be enough.]

There's an image below for reference: (in this instance I've named my identifier the same as my class)
![enter image description here][1]


[1]:
Reply

#10
Compiler shows following error :

Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Storyboard (<UIStoryboard: 0x7fedf2d5c9a0>) doesn't contain a
ViewController with identifier 'SBAddEmployeeVC''

Here the object of the storyboard created is not the main storyboard which contains our ViewControllers. As **storyboard file** on which we work is named as
**Main.storyboard**. So we need to have reference of object of the **Main.storyboard**.

Use following code for that :

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];

Here `storyboardWithName` is the name of the storyboard file we are working with and `bundle` specifies the bundle in which our storyboard is (i.e. `mainBundle`).
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through