Xamarin.ios MonoTouch.对话框行动画

Xamarin.ios MonoTouch.对话框行动画,xamarin.ios,monotouch.dialog,Xamarin.ios,Monotouch.dialog,只是想知道在节中添加/删除元素时,节中是否可能没有动画。甚至在添加/删除节本身时 在ViewWill出现时,我检查一个全局布尔值,查看应用程序是否已退出/重新打开。这将导致它重新加载新数据。(没有设置,但客户希望这样设置)。因此,在ViewWill出现时,我们调用一个名为UpdateCells的函数,它执行以下操作 // Using Bottom animation as its the closest to none (none has no fade effects // but makes

只是想知道在节中添加/删除元素时,节中是否可能没有动画。甚至在添加/删除节本身时

在ViewWill出现时,我检查一个全局布尔值,查看应用程序是否已退出/重新打开。这将导致它重新加载新数据。(没有设置,但客户希望这样设置)。因此,在ViewWill出现时,我们调用一个名为UpdateCells的函数,它执行以下操作

// Using Bottom animation as its the closest to none (none has no fade effects
// but makes solid cells move upwards in the TableView and then suddenly disappear)
Root.Remove(mySection1, UITableViewRowAnimation.Bottom);
Root.Remove(mySection2, UITableViewRowAnimation.Bottom);
mySection1.Clear();
mySection2.Clear();
// Load stuff from SQLite DB and populate sections. Adding looks like:
// if (isThisWeek)
// {
//    section1.Insert(0, UITableViewRowAnimation.None, newElement);
// }
// else
// {
//    section2.Insert(0. UITableViewRowAnimation.None, newElement);
// }
// Now finally add sections back into Root if there exists elements in them.
if (sectionThisWeek.Count > 0)
{
    Root.Insert(1, UITableViewRowAnimation.None, sectionThisWeek);
}
if (sectionCommingUp.Count > 0)
{
    Root.Insert(1, UITableViewRowAnimation.None, sectionCommingUp);
}
我希望能在DialogViewController中暂停所有操作,然后在没有动画的情况下重新加载Complete()。。不知怎的


你知道我做错了什么,或者有更好的方法来做我想做的事情。

如果你一次重新加载所有数据,你只需将整个新值分配给DialogViewController上的Root属性,就不会显示动画