When navigating back in navigation controller view doesn't load












0














I have weird situation and have no clue how to debug it. I load three viewControllers in navigation controller. When Im navigating back from there second and first ViewController doesn't display anything just white screen I added print methods everywhere in lifecycle methods and it seems that it loads views but anyway they not visible. What could be the problem?










share|improve this question


















  • 2




    Can you, please, attach code?
    – Bohdan Savych
    Nov 12 '18 at 8:28










  • How you call new ViewController and navigate back from it?
    – rptwsthi
    Nov 12 '18 at 9:29










  • Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
    – Nupur Gupta
    Nov 12 '18 at 10:03
















0














I have weird situation and have no clue how to debug it. I load three viewControllers in navigation controller. When Im navigating back from there second and first ViewController doesn't display anything just white screen I added print methods everywhere in lifecycle methods and it seems that it loads views but anyway they not visible. What could be the problem?










share|improve this question


















  • 2




    Can you, please, attach code?
    – Bohdan Savych
    Nov 12 '18 at 8:28










  • How you call new ViewController and navigate back from it?
    – rptwsthi
    Nov 12 '18 at 9:29










  • Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
    – Nupur Gupta
    Nov 12 '18 at 10:03














0












0








0







I have weird situation and have no clue how to debug it. I load three viewControllers in navigation controller. When Im navigating back from there second and first ViewController doesn't display anything just white screen I added print methods everywhere in lifecycle methods and it seems that it loads views but anyway they not visible. What could be the problem?










share|improve this question













I have weird situation and have no clue how to debug it. I load three viewControllers in navigation controller. When Im navigating back from there second and first ViewController doesn't display anything just white screen I added print methods everywhere in lifecycle methods and it seems that it loads views but anyway they not visible. What could be the problem?







ios objective-c iphone xcode






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 8:25









kosas

6911619




6911619








  • 2




    Can you, please, attach code?
    – Bohdan Savych
    Nov 12 '18 at 8:28










  • How you call new ViewController and navigate back from it?
    – rptwsthi
    Nov 12 '18 at 9:29










  • Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
    – Nupur Gupta
    Nov 12 '18 at 10:03














  • 2




    Can you, please, attach code?
    – Bohdan Savych
    Nov 12 '18 at 8:28










  • How you call new ViewController and navigate back from it?
    – rptwsthi
    Nov 12 '18 at 9:29










  • Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
    – Nupur Gupta
    Nov 12 '18 at 10:03








2




2




Can you, please, attach code?
– Bohdan Savych
Nov 12 '18 at 8:28




Can you, please, attach code?
– Bohdan Savych
Nov 12 '18 at 8:28












How you call new ViewController and navigate back from it?
– rptwsthi
Nov 12 '18 at 9:29




How you call new ViewController and navigate back from it?
– rptwsthi
Nov 12 '18 at 9:29












Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
– Nupur Gupta
Nov 12 '18 at 10:03




Maybe you are not pushing the view controllers properly and because of that when you get back you are getting a blank screens
– Nupur Gupta
Nov 12 '18 at 10:03












1 Answer
1






active

oldest

votes


















0














Yep It's weird, There maybe some code which do something with your view on such events like:



override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
// remove some subviews or change constraints.
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
// remove some subviews or change constraints.

}


Please send us a code of the view controller which has the problems and code how exactly you show the controller.






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%2f53258258%2fwhen-navigating-back-in-navigation-controller-view-doesnt-load%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Yep It's weird, There maybe some code which do something with your view on such events like:



    override func viewDidDisappear(_ animated: Bool) {
    super.viewDidDisappear(animated)
    // remove some subviews or change constraints.
    }

    override func viewWillDisappear(_ animated: Bool) {
    super.viewWillDisappear(animated)
    // remove some subviews or change constraints.

    }


    Please send us a code of the view controller which has the problems and code how exactly you show the controller.






    share|improve this answer


























      0














      Yep It's weird, There maybe some code which do something with your view on such events like:



      override func viewDidDisappear(_ animated: Bool) {
      super.viewDidDisappear(animated)
      // remove some subviews or change constraints.
      }

      override func viewWillDisappear(_ animated: Bool) {
      super.viewWillDisappear(animated)
      // remove some subviews or change constraints.

      }


      Please send us a code of the view controller which has the problems and code how exactly you show the controller.






      share|improve this answer
























        0












        0








        0






        Yep It's weird, There maybe some code which do something with your view on such events like:



        override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        // remove some subviews or change constraints.
        }

        override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        // remove some subviews or change constraints.

        }


        Please send us a code of the view controller which has the problems and code how exactly you show the controller.






        share|improve this answer












        Yep It's weird, There maybe some code which do something with your view on such events like:



        override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        // remove some subviews or change constraints.
        }

        override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        // remove some subviews or change constraints.

        }


        Please send us a code of the view controller which has the problems and code how exactly you show the controller.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 9:34









        Gkolunia

        828




        828






























            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%2f53258258%2fwhen-navigating-back-in-navigation-controller-view-doesnt-load%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







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()