Swift Store and Restore ViewController state on Button Click
问题 I am using Xcode 8 and Swift 2.3 I went through couple of websites, which are guides about state restoration methods: https://www.raywenderlich.com/117471/state-restoration-tutorial https://github.com/shagedorn/StateRestorationDemo/blob/master/StateRestorationDemo/CityViewController.swift But I need to store and restore the state of the view controller on button click with passing identified key. I cant use single identifier in storyboard because I need to save many instances of the same