On 01.11.2011 18:42, shawnlehner wrote:
> Thanks for the reply!
>
> This is what I expected but my tests say otherwise. I performed a few very
> crude tests and it does not appear that the View is being released. Here is
> what I did ...
>
> In the ViewDidLoad I created a WeakReference to the view and stored it for
> later. When the DidReceiveMemoryWarning I invoked the following code:
>
> t = NSTimer.CreateRepeatingScheduledTimer(0.1, delegate {
>                               Console.WriteLine(wr.IsAlive);
>                       });
>
> This results in wr.IsAlive returning true consistently.

If the view controller is still visible, iOS won't call ViewDidUnload
nor destroy its view. Try to bury it under a navigation controller
by pushing another view controller above it.

Robert

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to