AMViralSwitchSample.ViewController.ReleaseDesignerOutlets C# (CSharp) Method

ReleaseDesignerOutlets() private method

private ReleaseDesignerOutlets ( ) : void
return void
		void ReleaseDesignerOutlets ()
		{
			if (blueLabel != null) {
				blueLabel.Dispose ();
				blueLabel = null;
			}
			if (blueSwitch != null) {
				blueSwitch.Dispose ();
				blueSwitch = null;
			}
			if (greenSwitch != null) {
				greenSwitch.Dispose ();
				greenSwitch = null;
			}
			if (greenView != null) {
				greenView.Dispose ();
				greenView = null;
			}
			if (infoButton != null) {
				infoButton.Dispose ();
				infoButton = null;
			}
		}
	}