MonoTouch.Dialog.DialogViewController.DeactivateController C# (CSharp) Method

DeactivateController() public method

Dismisses the view controller. It either pops or dismisses based on the kind of container we are hosted in.
public DeactivateController ( bool animated ) : void
animated bool
return void
		public void DeactivateController (bool animated)
		{
			var parent = ParentViewController;
			var nav = parent as UINavigationController;
			
			if (nav != null)
				nav.PopViewControllerAnimated (animated);
			else
				DismissModalViewControllerAnimated (animated);
		}