iPhone app launch time, lifecycle question

前端 未结 4 564
别跟我提以往
别跟我提以往 2021-01-16 10:35

I\'m trying come up with a method to determine how long after the user taps the app icon it takes for the app to be ready for user input.

As far as I know, the first

4条回答
  •  甜味超标
    2021-01-16 11:18

    Without access to the SpringBoard (something that only Apple and owners of jailbroken phones have), you can't get a very precise measurement of launch time. If your phone is jailbroken you might be able to create a debug version of of your app and run it with the time command.

    On the other hand, nearly all of the launch time that's under your control as a programmer happens between main() and applicationDidFinishLaunching:. So that might be a good place to start anyway.

提交回复
热议问题