V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tsinghan
V2EX  ›  iOS

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

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

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

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

    异步执行,或者直接上 Instruments 一目了然。
    tsinghan
        2
    tsinghan  
    OP
       Apr 18, 2015
    @vincentxue 多谢,我试试Instruments 这个
    wezzard
        3
    wezzard  
       Apr 18, 2015
    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
        4
    tsinghan  
    OP
       Apr 18, 2015
    @wezzard thanks,will check
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4122 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 00:52 · PVG 08:52 · LAX 17:52 · JFK 20:52
    ♥ Do have faith in what you're doing.