expkzb
V2EX  ›  问与答

iOS 10 UICollectionView 优化了性能,终于不丢帧了

  •  
  •   expkzb · Jun 22, 2016 · 4723 views
    This topic created in 3693 days ago, the information mentioned may be changed or developed.

    你要做的

    • Do heavy lifting in cellForItemAtIndexPath
    • Do minimal work in willDisplayCell/didEndDisplayingCell
    • cellForItemAtIndexPath prepared cell may never display

    还增加了新 API 来进行预加载

    很难想象到了 iOS10 苹果才想起来这件事

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.