performSegue not working and result crash
I am facing weird crash when trying to call performSegue in storyBoard. I already configured view controller segueID and it is UINavigation hierarchy based viewController.I am getting the following error.
ERROR - " has no segue with the identifier 'SEGUE_ID'"

ios uistoryboardsegue
add a comment |
I am facing weird crash when trying to call performSegue in storyBoard. I already configured view controller segueID and it is UINavigation hierarchy based viewController.I am getting the following error.
ERROR - " has no segue with the identifier 'SEGUE_ID'"

ios uistoryboardsegue
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the idSEGUE_ID.
– jervine10
Nov 6 '18 at 17:18
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21
add a comment |
I am facing weird crash when trying to call performSegue in storyBoard. I already configured view controller segueID and it is UINavigation hierarchy based viewController.I am getting the following error.
ERROR - " has no segue with the identifier 'SEGUE_ID'"

ios uistoryboardsegue
I am facing weird crash when trying to call performSegue in storyBoard. I already configured view controller segueID and it is UINavigation hierarchy based viewController.I am getting the following error.
ERROR - " has no segue with the identifier 'SEGUE_ID'"

ios uistoryboardsegue
ios uistoryboardsegue
edited Nov 6 '18 at 17:24
asked Nov 6 '18 at 17:09
Santosh Singh
251312
251312
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the idSEGUE_ID.
– jervine10
Nov 6 '18 at 17:18
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21
add a comment |
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the idSEGUE_ID.
– jervine10
Nov 6 '18 at 17:18
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the id
SEGUE_ID.– jervine10
Nov 6 '18 at 17:18
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the id
SEGUE_ID.– jervine10
Nov 6 '18 at 17:18
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21
add a comment |
4 Answers
4
active
oldest
votes
Check direction of your connection.
Its Destination to Source.
It should be Source to destination.

add a comment |
Try checking
if segue.identifier == “SegueID”
In the begining of your prepare function
You meanSEGUE_IDto be exact, as his image shows.
– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this lineself.performSegue(withIdentifier: "SEGUE_ID", sender: self).
– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
add a comment |
You can check the storyBoard like this :
print(self.storyboard)
self.performSegue(withIdentifier: "SEGUE_ID", sender: self)
It cannot be nil
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
add a comment |
Not sure if it was my mistake or something changed in segue connection. Earlier I used to drag the connection from destination to the source view controller but I feel it is not working now. It starts working when I changed the direction of connection i.e. source to destination ViewController.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53176718%2fperformsegue-not-working-and-result-crash%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check direction of your connection.
Its Destination to Source.
It should be Source to destination.

add a comment |
Check direction of your connection.
Its Destination to Source.
It should be Source to destination.

add a comment |
Check direction of your connection.
Its Destination to Source.
It should be Source to destination.

Check direction of your connection.
Its Destination to Source.
It should be Source to destination.

edited Nov 13 '18 at 6:06
answered Nov 12 '18 at 14:17
Rajneesh071
23.3k114968
23.3k114968
add a comment |
add a comment |
Try checking
if segue.identifier == “SegueID”
In the begining of your prepare function
You meanSEGUE_IDto be exact, as his image shows.
– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this lineself.performSegue(withIdentifier: "SEGUE_ID", sender: self).
– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
add a comment |
Try checking
if segue.identifier == “SegueID”
In the begining of your prepare function
You meanSEGUE_IDto be exact, as his image shows.
– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this lineself.performSegue(withIdentifier: "SEGUE_ID", sender: self).
– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
add a comment |
Try checking
if segue.identifier == “SegueID”
In the begining of your prepare function
Try checking
if segue.identifier == “SegueID”
In the begining of your prepare function
answered Nov 6 '18 at 17:36
Mahgol Fa
28714
28714
You meanSEGUE_IDto be exact, as his image shows.
– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this lineself.performSegue(withIdentifier: "SEGUE_ID", sender: self).
– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
add a comment |
You meanSEGUE_IDto be exact, as his image shows.
– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this lineself.performSegue(withIdentifier: "SEGUE_ID", sender: self).
– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
You mean
SEGUE_ID to be exact, as his image shows.– George_E
Nov 6 '18 at 17:42
You mean
SEGUE_ID to be exact, as his image shows.– George_E
Nov 6 '18 at 17:42
@Mahgol: Not sure where I should check that but it crashes at this line
self.performSegue(withIdentifier: "SEGUE_ID", sender: self).– Santosh Singh
Nov 6 '18 at 17:50
@Mahgol: Not sure where I should check that but it crashes at this line
self.performSegue(withIdentifier: "SEGUE_ID", sender: self).– Santosh Singh
Nov 6 '18 at 17:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
Did you clear the building folder and rebuild again. It's really wired. BTW, did you call it in the TestViewController?
– E.Coms
Nov 6 '18 at 20:50
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
As I said you should check it in your prepare function, I mean do “self.performSegue...” if segue.identifier == “SEGUE_ID”
– Mahgol Fa
Nov 11 '18 at 10:36
add a comment |
You can check the storyBoard like this :
print(self.storyboard)
self.performSegue(withIdentifier: "SEGUE_ID", sender: self)
It cannot be nil
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
add a comment |
You can check the storyBoard like this :
print(self.storyboard)
self.performSegue(withIdentifier: "SEGUE_ID", sender: self)
It cannot be nil
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
add a comment |
You can check the storyBoard like this :
print(self.storyboard)
self.performSegue(withIdentifier: "SEGUE_ID", sender: self)
It cannot be nil
You can check the storyBoard like this :
print(self.storyboard)
self.performSegue(withIdentifier: "SEGUE_ID", sender: self)
It cannot be nil
answered Nov 6 '18 at 18:21
E.Coms
1,6302412
1,6302412
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
add a comment |
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Yes, It is not nil.
– Santosh Singh
Nov 6 '18 at 18:37
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
Is there any whitespace after "SEGUE_ID" by chance , like this "SEGUE_ID " in the storyboard?
– E.Coms
Nov 6 '18 at 19:25
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
No, I don't think so.
– Santosh Singh
Nov 6 '18 at 20:26
add a comment |
Not sure if it was my mistake or something changed in segue connection. Earlier I used to drag the connection from destination to the source view controller but I feel it is not working now. It starts working when I changed the direction of connection i.e. source to destination ViewController.
add a comment |
Not sure if it was my mistake or something changed in segue connection. Earlier I used to drag the connection from destination to the source view controller but I feel it is not working now. It starts working when I changed the direction of connection i.e. source to destination ViewController.
add a comment |
Not sure if it was my mistake or something changed in segue connection. Earlier I used to drag the connection from destination to the source view controller but I feel it is not working now. It starts working when I changed the direction of connection i.e. source to destination ViewController.
Not sure if it was my mistake or something changed in segue connection. Earlier I used to drag the connection from destination to the source view controller but I feel it is not working now. It starts working when I changed the direction of connection i.e. source to destination ViewController.
answered Nov 12 '18 at 14:12
Santosh Singh
251312
251312
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53176718%2fperformsegue-not-working-and-result-crash%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't know if I'd say this is a weird crash. This means you're trying to use a segueId that doesn't exist in the storyboard. Make sure you actually have a segue with the id
SEGUE_ID.– jervine10
Nov 6 '18 at 17:18
Yes, SEGUE_ID is already there in Storyboard. I have used this in past. I created a new test app, still crashing.
– Santosh Singh
Nov 6 '18 at 17:21