52inc / Pulley

A library to imitate the iOS 10 Maps UI.
https://cocoapods.org/pods/Pulley
MIT License
2.02k stars 265 forks source link

Problem when UINavigationController is primary controller #364

Closed fuad-adetoro closed 4 years ago

fuad-adetoro commented 5 years ago

Hey guys, I have an issue I can't seem to rectify. I have a UITabBarController with 4 tabs, one of those tabs is a PulleyViewController. The primary controller is a UINavigationController, when I click on the tab everything is in order, but when I go to another tab and then return the primary controller goes blank / shows a white view.

I managed to fix it by making the primary controller the top view controller of the navigation controller but that's not what I want.

ulmentflam commented 4 years ago

How did you initialize your PulleyViewController? Did you use interface builder or initialize it in code? Is it possible that when you segue to the view the embedded references to the subviews are being deallocated and when you return to the view they are not being reallocated? If you could post a code snippet it would be helpful in helping you debug.