/* public override void ViewDidUnload () { base.ViewDidUnload (); //_qhvc = null; _qvc = null; } */ protected override void Dispose (bool disposing) { if (disposing) { _qvc = null; } base.Dispose (disposing); }
void HandleQuizCompleted (object sender, GetQuizCompletedEventArgs args) { bool error = ServiceAgent.HandleAsynchCompletedError (args, "GetQuiz"); using (var pool = new NSAutoreleasePool()) { pool.InvokeOnMainThread (delegate { Busy = false; if (error) return; Model.Quiz result = args.Result.ToLbkQuiz (); //result.Id = 14; _qvc = new QuizViewController (result); this.NavigationController.PushViewController (_qvc, true); }); } }