SWRevealViewController how to fix popoViewController to work?

When i open the app, rearView and frontView works great. In frontView, i touch on a button and i can: [self.navigationController pushViewController:detailViewController animated:YES]; normally and then, in detailViewController: [self.navigationController popViewControllerAnimated:YES]; normally and beautiful.

But, when, in rearView, i touch a button to setFrontViewController or pushFrontViewController to update data in mainViewController ( frontView ), then i loose:[self.navigationController pushViewController:detailViewController animated:YES];does not work AND[self.revealViewController pushFrontViewController:detailViewController animated:YES]; NOT do the animation. Really sad!!! But, the main problem, using pushFrontViewController to open detailViewController. i cant [self.navigationController popViewControllerAnimated:YES];, OR [self.revealViewController.navigationController popViewControllerAnimated:YES]; OR anything to go back works...

Simple this doenst work when update the FrontView...

Even with segue...

Thanks for any idea


So, after taking a look at your code, I found that the issue was with connecting the right segue from your collection cell, or your table view cell to the ProductDetailViewController.

The issue was not with the SWRevealViewController, and you should only use the setFrontViewController method only when you are accessing something in your menu and are moving to a new page altogether. Navigation between the pages should be managed via segues only.

Also, another issue I found is when you are switching on/off the switches in your MenuViewController class, since you are resetting the frontViewController with new data, you should embed it in a Navigation Controller first otherwise the segues won't work again.

Hope this clarifies and solves the issue.

Need Your Help

Media Query pattern to manage style by both width and height

jquery html css media-queries fullpage.js

I recently made a site using the fullpage.js package, which essentially makes sections of your site broken into statically sized pages, sized to the full size of the viewport.

How send Email using Gmail api in swift

ios swift api email gmail-api

The Gmail Api has no clear documentation on how to do this, I have been trying with this but there are many things that are in the air.