Problem changing screens with Navigation Controller

Asked

Viewed 126 times

0

I have a small problem, my App uses the Navigation Controller and a View controller, I have declared trails that bridge the gap between Cells.

When running the app starts in Navigation Controller and when I click on the Cell items goes to and displays the item clicked in View controller.

And when you come back, you go back twice to Navigation Controller which I think has 2 Root View Controller.

Can someone help me? From now on my thanks.

Print da tela

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • Anselmo, what did you mean by "go back twice"? I don’t understand...

  • I want to say this: when I am in the table view with items in the list, and choose anyone. I go in a single view with the chosen item. When returning to the table view of the items it goes back twice. As if back to table view and then to navigation controller

  • I added more print

  • Is there a possibility that you are double clicking on the item? This has already happened to me... If you click twice and have no protection on this, it goes twice to the landing page and then has to go back twice... If not, you can post the code?

  • I’m certainly not clicking 2x on the item, I’ll take a look at the code

  • You are probably Stacking another view controller instead of doing the following in the correct way. You can only be sure if you post your code showing how you are navigating from one controller to another.

  • I will post the code, but for now I only have a following that connects to Cell a table view controller the details of the list items

Show 2 more comments

1 answer

0

Check if you’re not calling a performSegue before and then calling another event when selecting from the tableview. But if you can, post the code. I have had similar problem, this usually happens when we use many callbacks and forget to "finish" the previous view.

  • Nice you want to help, but you used the reply box to comment. You can post comments when you have a little more reputation points. Please use the answer field only to post a solution to the problem the question deals with.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.