MonoTouch.Dialog.RefreshTableHeaderView.Flip C# (CSharp) Method

Flip() public method

public Flip ( bool animate ) : void
animate bool
return void
		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;
		}
		

Usage Example

示例#1
0
        /// <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();
        }
All Usage Examples Of MonoTouch.Dialog.RefreshTableHeaderView::Flip