public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); //SelectedPictureImageView UITapGestureRecognizer tapGesture = new UITapGestureRecognizer(actionSheet); SelectedPictureImageView.AddGestureRecognizer(tapGesture); //SelectedPictureImageView.Image = food.image; }
void ReleaseDesignerOutlets() { if (addMoreButton != null) { addMoreButton.Dispose(); addMoreButton = null; } if (AnalysisLabel != null) { AnalysisLabel.Dispose(); AnalysisLabel = null; } if (caloriesLabel != null) { caloriesLabel.Dispose(); caloriesLabel = null; } if (caloriesText != null) { caloriesText.Dispose(); caloriesText = null; } if (carbsLabel != null) { carbsLabel.Dispose(); carbsLabel = null; } if (carbsText != null) { carbsText.Dispose(); carbsText = null; } if (decreaseButton != null) { decreaseButton.Dispose(); decreaseButton = null; } if (fatLabel != null) { fatLabel.Dispose(); fatLabel = null; } if (fatText != null) { fatText.Dispose(); fatText = null; } if (finishButton != null) { finishButton.Dispose(); finishButton = null; } if (IncreaseButton != null) { IncreaseButton.Dispose(); IncreaseButton = null; } if (MealTypeButton != null) { MealTypeButton.Dispose(); MealTypeButton = null; } if (proteinLabel != null) { proteinLabel.Dispose(); proteinLabel = null; } if (proteinText != null) { proteinText.Dispose(); proteinText = null; } if (quantityLabel != null) { quantityLabel.Dispose(); quantityLabel = null; } if (SelectedPictureImageView != null) { SelectedPictureImageView.Dispose(); SelectedPictureImageView = null; } if (servingSizeText != null) { servingSizeText.Dispose(); servingSizeText = null; } }