[英]Do I need to unsubscribe from a GestureRecogniser in Xamarin.Forms?
[英]Do I need to clean up memory myself in xamarin.forms?
我有一個登錄頁面。 授權后,用戶被帶到另一個頁面。
Device.BeginInvokeOnMainThread(() =>
{
Application.Current.MainPage = new Main_Page();
});
我應該以某種方式清除為登錄頁面分配的 memory 嗎?
絕對不是,它是自動完成的。
如果您在此處查看 Xamarin PageRenderer 代碼。 Xamarin Page
class 實現了 Dispose() 方法。 所以頁面應該被GC清理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.