I am wondering what RestorationIdentifier is, and why would we use it? I saw RestorationIdentifier on MMDrawerController. MMDrawerController using like this : `
[self setRestorationIdentifier:@"MMExampleCenterControllerRestorationKey"];`
Consider that you want to allow your user to close the app and then return to exactly where they were when they open the app again. And you should want to do that. Broadly you have 2 options:
Option 2 is behind the use of the restoration id (so that the view hierarchy can be recorded and rebuilt).
It is a property of UIViewController which indicates whether the ViewController and its contents should be preserved and is also used to identify the ViewController during the restoration/relaunch process.
Ref : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/index.html#//apple_ref/occ/instp/UIViewController/restorationIdentifier
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With