performSegue not working and result crash












1














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'"



enter image description here










share|improve this question
























  • 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
















1














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'"



enter image description here










share|improve this question
























  • 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














1












1








1


1





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'"



enter image description here










share|improve this question















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'"



enter image description here







ios uistoryboardsegue






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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
















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












4 Answers
4






active

oldest

votes


















1














Check direction of your connection.



Its Destination to Source.



It should be Source to destination.



enter image description here






share|improve this answer































    0














    Try checking



    if segue.identifier == “SegueID”



    In the begining of your prepare function






    share|improve this answer





















    • 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












    • 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



















    0














    You can check the storyBoard like this :



     print(self.storyboard)
    self.performSegue(withIdentifier: "SEGUE_ID", sender: self)


    It cannot be nil






    share|improve this answer





















    • 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



















    0














    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.






    share|improve this answer





















      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      1














      Check direction of your connection.



      Its Destination to Source.



      It should be Source to destination.



      enter image description here






      share|improve this answer




























        1














        Check direction of your connection.



        Its Destination to Source.



        It should be Source to destination.



        enter image description here






        share|improve this answer


























          1












          1








          1






          Check direction of your connection.



          Its Destination to Source.



          It should be Source to destination.



          enter image description here






          share|improve this answer














          Check direction of your connection.



          Its Destination to Source.



          It should be Source to destination.



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 13 '18 at 6:06

























          answered Nov 12 '18 at 14:17









          Rajneesh071

          23.3k114968




          23.3k114968

























              0














              Try checking



              if segue.identifier == “SegueID”



              In the begining of your prepare function






              share|improve this answer





















              • 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












              • 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
















              0














              Try checking



              if segue.identifier == “SegueID”



              In the begining of your prepare function






              share|improve this answer





















              • 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












              • 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














              0












              0








              0






              Try checking



              if segue.identifier == “SegueID”



              In the begining of your prepare function






              share|improve this answer












              Try checking



              if segue.identifier == “SegueID”



              In the begining of your prepare function







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 6 '18 at 17:36









              Mahgol Fa

              28714




              28714












              • 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












              • 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










              • @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












              • 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











              0














              You can check the storyBoard like this :



               print(self.storyboard)
              self.performSegue(withIdentifier: "SEGUE_ID", sender: self)


              It cannot be nil






              share|improve this answer





















              • 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
















              0














              You can check the storyBoard like this :



               print(self.storyboard)
              self.performSegue(withIdentifier: "SEGUE_ID", sender: self)


              It cannot be nil






              share|improve this answer





















              • 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














              0












              0








              0






              You can check the storyBoard like this :



               print(self.storyboard)
              self.performSegue(withIdentifier: "SEGUE_ID", sender: self)


              It cannot be nil






              share|improve this answer












              You can check the storyBoard like this :



               print(self.storyboard)
              self.performSegue(withIdentifier: "SEGUE_ID", sender: self)


              It cannot be nil







              share|improve this answer












              share|improve this answer



              share|improve this answer










              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


















              • 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











              0














              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.






              share|improve this answer


























                0














                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.






                share|improve this answer
























                  0












                  0








                  0






                  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.






                  share|improve this answer












                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 12 '18 at 14:12









                  Santosh Singh

                  251312




                  251312






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      List item for chat from Array inside array React Native

                      Thiostrepton

                      Caerphilly