State restoration not work on iOS 8.3?
Asked Answered
G

0

9

State restoration does not work well on iOS8.3, same code works well on iOS8.2. This problem can be reproduced by using apple sample code.

Steps to Reproduce:

  1. Launch app and browse to second tab
  2. Kill app
  3. Launch app again

Expected Results:

It should return to second tab as restoration result

Actual Results:

It returns to first tab, which is caused by "application:shouldRestoreApplicationState" has never been called.

Version:

iOS 8.3 12F69

Notes:

Configuration:

iPhone Simulator, iPhone 6P


Have anyone met similar issue? Is there a way to workaround it?.

Gsuit answered 7/5, 2015 at 15:22 Comment(1)
According Apple's Readme inside the sample's archive, you shouldn't use simulator's multitasking bar to kill the app. Instead you should use Xcode or programmatically call exit. But for me it didn't help anyway, and it doesn't work even on iOS7.1 for some reason.Brannan

© 2022 - 2024 — McMap. All rights reserved.