0
0

More than 3 years have passed since last update.

【TIPS】Testing for State Restoration

Posted at

iOS13以降からState RestorationはNSUserActivityを利用したものに変わりましたが、サンプルコードのTest State Restoration on a Deviceにテスト方法が載っていたため紹介します。

文章は、サンプルコードの手引きの内容に具体的なステップを足したものです。

テスト方法

アプリケーションを実行し、復帰したい画面でホームボタンを押す。ホーム画面に戻ったらXcodeの停止ボタン(もしくは停止のキーボードショートカット)を実行し、その後ホーム画面から開く。こうすることでState Restorationをテストすることができる。

※ Xcodeの実行ボタンから再実行させるとテストできないので注意

0
0
0

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
0
0