Re: Cancelling state restoration on iOS

2017-07-25 Thread Steve Mills
On Jul 25, 2017, at 22:28:19, Sixten Otto wrote: > > You can set a custom restorationClass on a per view controller basis, > passing the process of instantiating the controller during restoration > through your own code that knows how to check whether the document is still >

Re: Cancelling state restoration on iOS

2017-07-25 Thread Sixten Otto
You can set a custom restorationClass on a per view controller basis, passing the process of instantiating the controller during restoration through your own code that knows how to check whether the document is still there. (We do something similar in our app in some places to make sure that our

Cancelling state restoration on iOS

2017-07-25 Thread Steve Mills
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

In app purchase + redeem points as gift vouchers

2017-07-25 Thread Devarshi Kulshreshtha
We are developing a multiplayer game in which user has to buy some credit point through in app purchase, then he can multiply those points by winning multiplayer challenges with friends. On reaching a certain level of points, he can reward himself by re-deeming gift vouchers (amazon, ebay, etc)