本文整理汇总了C#中MonoTouch.ReloadSections方法的典型用法代码示例。如果您正苦于以下问题:C# MonoTouch.ReloadSections方法的具体用法?C# MonoTouch.ReloadSections怎么用?C# MonoTouch.ReloadSections使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoTouch
的用法示例。
在下文中一共展示了MonoTouch.ReloadSections方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RowSelected
public void RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
{
switch (indexPath.Section) {
case 0: //MMDrawerSectionViewSelection
MMExampleCenterTableViewController center = new MMExampleCenterTableViewController ();
UINavigationController nav = new UINavigationController (center);
if (indexPath.Row % 2 == 0) {
MMDrawerController_UIViewController.Mm_drawerController.CenterViewController = nav;
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerAnimated (true, null);
} else {
MMDrawerController_UIViewController.Mm_drawerController.CenterViewController = nav;
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerAnimated (true, null);
}
break;
case 1: //MMDrawerSectionDrawerWidth
break;
case 2: //MMDrawerSectionShadowToggle
MMDrawerController_UIViewController.Mm_drawerController.ShowsShadow = MMDrawerController_UIViewController.Mm_drawerController.ShowsShadow;
tableView.ReloadSections (NSIndexSet.FromIndex (indexPath.Section), UITableViewRowAnimation.None);
break;
case 3: //MMDrawerSectionOpenDrawerGestures
switch (indexPath.Row) {
case 0:
MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.PanningNavigationBar;
break;
case 1:
MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.PanningCenterView;
break;
case 2:
MMDrawerController_UIViewController.Mm_drawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.BezelPanningCenterView;
break;
default:
break;
}
tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None);
break;
case 4: //MMDrawerSectionCloseDrawerGestures
switch (indexPath.Row) {
case 0:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningNavigationBar;
break;
case 1:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningCenterView;
break;
case 2:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.BezelPanningCenterView;
break;
case 3:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.TapNavigationBar;
break;
case 4:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.TapCenterView;
break;
case 5:
MMDrawerController_UIViewController.Mm_drawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.PanningDrawerView;
break;
default:
break;
}
tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None);
break;
case 5: //MMDrawerSectionCenterHiddenInteraction
tableView.ReloadRows (new NSIndexPath[]{ indexPath }, UITableViewRowAnimation.None);
break;
case 6: //MMDrawerSectionStretchDrawer
MMDrawerController_UIViewController.Mm_drawerController.ShouldStretchDrawer = !MMDrawerController_UIViewController.Mm_drawerController.ShouldStretchDrawer;
tableView.ReloadSections (NSIndexSet.FromIndex (indexPath.Section), UITableViewRowAnimation.None);
break;
default:
break;
}
tableView.SelectRow (indexPath, false, UITableViewScrollPosition.None);
tableView.DeselectRow (indexPath, true);
}