Implement UIStateRestoring and UIObjectRestoration for iOS