Giter VIP home page Giter VIP logo

officechat's People

Contributors

descartess avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

diwakarfluttter

officechat's Issues

Retain Cycle

Hi Paul, so I was taking this project for a spin and I realised a retain cycle and even though I haven't been able to resolve it because of time constraints, I thought it would be great to let you know about it.

How to reproduce this

Using instruments with the Allocations tool, you can record and check below at the Allocation Summary portion, you can observe the persistent and transient objects to see the changes when you move from the Chat List screen to the Chat Screen. You will notice that after popping the Chat Screen from the navigation stack when you hit the back button, the strong variable var viewModel: ChatViewModel? is retained (or it is persistent). Try it several times and you notice, it reoccurs.

What I suspect is the issue?

  1. The reference between the chatViewModel & chatViewController seems inverted.
  2. Also, it could be because the variable named chatViewModel created in the chatListController's didSelectRow method is deallocated after the scope ends and leaves only the strong reference with the chatViewController so basically non-existent and unable to receive messages from it's delegate.

Screenshot 2019-03-18 at 2 26 21 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.