コード例 #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(RefreshStatus.PullToReload);

            UIView.CommitAnimations();
        }