Code Monkey home page Code Monkey logo

Comments (3)

pujiaxin33 avatar pujiaxin33 commented on May 20, 2024
  1. 对列表已经抽象为遵从协议JXSegmentedListContainerViewListDelegate的类,所以,没有对列表做什么特殊处理。如果你的列表是VC,那么就不能信赖它的生命周期方法。因为列表只是使用了VC的view而已。如果要实现VC的全生命周期,需要配合beginAppearanceTransitionendAppearanceTransitionAPI。因为我对列表进行了抽象,所以就没有做这个操作。
  2. 因为列表的listDidAppear方法,在willMove(toWindow newWindow: UIWindow?)触发,所以时机有点不太恰当。

基于现在的版本解决你的问题,建议你把最外层的父VC的生命周期方法,通过自定义方法传递给子VC,而不要依赖于listDidAppear

from jxsegmentedview.

sec7et avatar sec7et commented on May 20, 2024
  1. 对列表已经抽象为遵从协议JXSegmentedListContainerViewListDelegate的类,所以,没有对列表做什么特殊处理。如果你的列表是VC,那么就不能信赖它的生命周期方法。因为列表只是使用了VC的view而已。如果要实现VC的全生命周期,需要配合beginAppearanceTransitionendAppearanceTransitionAPI。因为我对列表进行了抽象,所以就没有做这个操作。
  2. 因为列表的listDidAppear方法,在willMove(toWindow newWindow: UIWindow?)触发,所以时机有点不太恰当。

基于现在的版本解决你的问题,建议你把最外层的父VC的生命周期方法,通过自定义方法传递给子VC,而不要依赖于listDidAppear

收到,学习了,感谢提供解决思路。

from jxsegmentedview.

pujiaxin33 avatar pujiaxin33 commented on May 20, 2024

后期我会再优化列表的生命周期方法的处理,目前就按照现在的方案就行。

from jxsegmentedview.

Related Issues (20)

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.