-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