New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with tabbar controller #64
Comments
Hi, Thanks, |
no. But I can create a repo. 5 mins |
https://github.com/DKalachniuk/ExpandableCell please take a look |
Ok I found how to fix your problem: Because of a memory leak in certain conditions, I added a flow to allow auto release of delegate - in some cases it is OK to have it auto released, i.e the screen will reload and the delegate will be reset automatically. However, in your case, the screen doesn't reload - i.e viewDidLoad does not get called when you switch between tabs, so your scenario doesnt need the autoRelease of the delegate, you need to manage it yourself (i.e when to add it and when to remove it from the tableview). so in your viewDidLoad add this code: and that way your delegate will get to live past viewWillMoveToWindow:nil however, when you leave that screen - where the tabs are- to have completely disappear from memory, you'd need to make the delegate be nil yourself |
it works! Thank you very much! |
I have a tabbar controller.
ViewController A with expandable table view inside
View Controller B without. Just empty one
I open A.
opened B
then Open A
expandable table view is not working and crashes
I reproduced this issue with demo app. Just embed in tabbarcontroller instead of navigation controller.
please help
The text was updated successfully, but these errors were encountered: