Cancelling state restoration on iOS
Cancelling state restoration on iOS
- Subject: Cancelling state restoration on iOS
- From: Steve Mills <email@hidden>
- Date: Tue, 25 Jul 2017 14:50:52 -0500
There doesn't appear to be any way to cancel state restoration other than from
the app delegate method application:shouldRestoreApplicationState:. So if it's
trying to restore a view controller for a document that is no longer available
on the device, I want to cancel the whole restoration. The only object that
knows which document was previously open is the view controller that displays
the document. But the only methods offered for decoding a VC's state is
decodeRestorationStateWithCoder:, which doesn't return anything like a BOOL to
say if it could be restored or not.
Any ideas?
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden