alfa
V2EX  ›  iOS

键盘弹出事件导致 CADisplayLink 延迟

  •  
  •   alfa · Sep 18, 2018 · 3564 views
    This topic created in 2857 days ago, the information mentioned may be changed or developed.

    现在在实现一个类似 iOS 端微信聊天页面的动画效果,即键盘弹出、表情弹出等 UITableView 需要向上移动、我使用 CADisplayLink 实现(使用 UIView animation 实现会出现一些 bug),如果事件由 UIButton 触发,动画正常,但是如果是键盘事件,动画需要等待键盘弹出后再开始。请问各位大神是否遇到过类似问题 /解决方案?

    2 replies    2018-09-18 10:19:17 +08:00
    MarginK
        1
    MarginK  
       Sep 18, 2018
    你是加在哪一个 runloop 下的呢
    alfa
        2
    alfa  
    OP
       Sep 18, 2018
    @MarginK common,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3159 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 91ms · UTC 12:30 · PVG 20:30 · LAX 05:30 · JFK 08:30
    ♥ Do have faith in what you're doing.