void ReleaseDesignerOutlets() { if (FirstPlayerImageView != null) { FirstPlayerImageView.Dispose(); FirstPlayerImageView = null; } if (FirstPlayerNameLabel != null) { FirstPlayerNameLabel.Dispose(); FirstPlayerNameLabel = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (SecondPlayerImageView != null) { SecondPlayerImageView.Dispose(); SecondPlayerImageView = null; } if (SecondPlayerNameLabel != null) { SecondPlayerNameLabel.Dispose(); SecondPlayerNameLabel = null; } }
public override void PrepareForReuse() { base.PrepareForReuse(); FirstPlayerImageView.RemoveGestureRecognizer(_firstImageTapped); SecondPlayerImageView.RemoveGestureRecognizer(_secondImageTapped); InitialiseCell(); }
void SetUpTapGestures() { _firstImageTapped = new UITapGestureRecognizer(FirstImageTapped); _secondImageTapped = new UITapGestureRecognizer(SecondImageTapped); FirstPlayerImageView.AddGestureRecognizer(_firstImageTapped); SecondPlayerImageView.AddGestureRecognizer(_secondImageTapped); }