-1
从tutorials like this我知道我需要在我的视图控制器上设置RestorationIdentifier和RestorationClass,以便在没有故事板的情况下恢复状态,但我无法弄清楚如何在视图控制器中设置RestorationClass。如何在没有故事板的Xamarin.iOS UIViewController中设置RestorationClass?
Objective-C的例子做self.RestorationClass = [self class]
,但我尝试C#编译产生错误无法隐式转换类型“富”到“ObjCRuntime.Class。我如何解决这个错误?
Repo with my working, minimal example