184
142

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[ObjC][memo] applicationDidBecomeActive の実行タイミングメモ

Last updated at Posted at 2014-05-28

applicationDidBecomeActive の実行されるタイミングで、ビューの処理がしたかったのだけど、実行されるタイミングがよくわからなかったので「AppDelegateのメソッドと、イニシャルUIViewControllerのメソッドの実行順」を出力したメモ。

#アプリ起動

[AppDelegate] application:willFinishLaunchingWithOptions:

[AppDelegate] application:didFinishLaunchingWithOptions:

[ViewController] viewDidLoad

[ViewController] viewWillAppear:

[AppDelegate] applicationDidBecomeActive:

[ViewController] viewDidAppear:

###ホームボタン押下でバックグラウンドに

[AppDelegate] applicationWillResignActive:

[AppDelegate] applicationDidEnterBackground:

###再度アプリをタップしフォアグラウンドに

[AppDelegate] applicationWillEnterForeground:

[AppDelegate] applicationDidBecomeActive:

###ホームボタンダブルタップでアプリ一覧表示

[AppDelegate] applicationWillResignActive:

###一覧からアプリをタップし再度フォアグラウンドに

[AppDelegate] applicationDidBecomeActive:

###再度ホームボタンダブルタップでアプリ一覧表示

[AppDelegate] applicationWillResignActive:

###アプリ一覧から上にスライドして終了

[AppDelegate] applicationDidEnterBackground:

[AppDelegate] applicationDidEnterBackground: (←これなんか2回呼ばれる)

[ViewController] viewWillDisappear:

[ViewController] viewDidDisappear:

[AppDelegate] applicationWillTerminate:


#バックグラウンド時に通知エリアをタップしてフォアグラウンドに

[AppDelegate] applicationWillEnterForeground:

[AppDelegate] application:didReceiveLocalNotification:

[AppDelegate] applicationDidBecomeActive:


#最後に
なにか間違いなどありましたら気軽にコメントいただけると嬉しいです

184
142
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
184
142

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?