expkzb
V2EX  ›  问与答

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

  •  
  •   expkzb · Jun 22, 2016 · 4636 views
    This topic created in 3646 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   ·   5567 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 06:06 · PVG 14:06 · LAX 23:06 · JFK 02:06
    ♥ Do have faith in what you're doing.