Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Disposing custom renderer with only the UIViewController

$
0
0

I'm using Xamarin.Forms in an existing Xamarin.iOS project with a UINavigationController. When popping the controller, the custom renderer is never invoked. When using the custom renderer in a ContentPage as part of a NavigationPage, popping the view properly frees the object. Even simply instantiating the UIViewController with CreateViewController() then disposing it doesn't call the overridden Dispose. To make things even more confusing, regular custom UIViewController classes are disposed of when popped from the UINavigationController.

What kind of black magic is required to dispose of a UIViewController containing a Forms custom renderer?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>