public void Flip (bool animate)
{
UIView.BeginAnimations (null);
UIView.SetAnimationDuration (animate ? .18f : 0);
arrowView.Layer.Transform = IsFlipped
? CATransform3D.MakeRotation ((float)Math.PI, 0, 0, 1)
: CATransform3D.MakeRotation ((float)Math.PI * 2, 0, 0, 1);
UIView.CommitAnimations ();
IsFlipped = !IsFlipped;
}
/// <summary> /// Invoke this method to signal that a reload has completed, this will update the UI accordingly. /// </summary> public void ReloadComplete() { if (refreshView != null) { refreshView.LastUpdate = DateTime.Now; } if (!reloading) { return; } reloading = false; if (refreshView == null) { return; } refreshView.SetActivity(false); refreshView.Flip(false); UIView.BeginAnimations("doneReloading"); UIView.SetAnimationDuration(0.3f); TableView.ContentInset = new UIEdgeInsets(0, 0, 0, 0); refreshView.SetStatus(RefreshViewStatus.PullToReload); UIView.CommitAnimations(); }