tsinghan
V2EX  ›  iOS

app 没有 crash, 但是不动了, 这是什么情况? 怎么调试?

  •  
  •   tsinghan · Apr 18, 2015 · 3554 views
    This topic created in 4217 days ago, the information mentioned may be changed or developed.

    app 没有crash, 但是不动了, 这是什么情况? 怎么调试?

    4 replies  •  2015-04-18 19:19:00 +08:00
    vincentxue
    vincentxue
    Apr 18, 2015
    1
    八成是主线程阻塞了。

    异步执行,或者直接上 Instruments 一目了然。
    tsinghan
    tsinghan
    OP
    Apr 18, 2015
    2
    @vincentxue 多谢,我试试Instruments 这个
    wezzard
    wezzard
    Apr 18, 2015
    3
    May be you were jumped to main thread from main thread.

    Like doing:

    dispatch_async(dispatch_get_main_queue(), { () -> Void in
    // Blablablabla
    })

    in main thread.
    tsinghan
    tsinghan
    OP
    Apr 18, 2015
    4
    @wezzard thanks,will check
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4253 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 01:07 · PVG 09:07 · LAX 17:07 · JFK 20:07
    ♥ Do have faith in what you're doing.