public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { tableView.DeselectRow(indexPath, true); //[tv deselectRowAtIndexPath:indexPath animated:YES]; UIViewController vc; int s = indexPath.Section; int r = indexPath.Row; if (s == 0 && r < 2) { if (r == 0) { vc = new HUDViewController(); } //vc = new CoverflowViewController(); else { vc = new HUDViewController(); } //vc = new GraphController(); //vc = new UIViewController(); vc.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve; _vc.PresentModalViewController(vc, true); return; } if (s == 0 && r == 2) { //vc = new DemoCalendarMonth(); } if (s == 0 && r == 2) { vc = new DemoCalendarMonth(); } //vc = [[DemoCalendarMonth alloc] initWithSunday:NO]; else if (s == 1 && r == 0) { vc = new EmptyViewController(); } else if (s == 1 && r == 1) { vc = new HUDViewController(); } else if (s == 1 && r == 2) { vc = new AlertsViewController(); } else if (s == 1 && r == 3) { vc = new MapViewController(); } else if (s == 2 && r == 0) { vc = new HUDViewController(); } //vc = [[LabelViewController alloc] initWithStyle:UITableViewStyleGrouped]; else if (s == 2 && r == 1) { vc = new HUDViewController(); } //vc = [[MoreCellsViewController alloc] initWithStyle:UITableViewStyleGrouped]; else if (s == 2 && r == 2) { vc = new HUDViewController(); } //vc = [[FastTableViewController alloc] init]; else { vc = new TweetViewController(); } _vc.NavigationController.PushViewController(vc, true); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { tableView.DeselectRow(indexPath, true); //[tv deselectRowAtIndexPath:indexPath animated:YES]; UIViewController vc; int s = indexPath.Section; int r = indexPath.Row; if(s == 0 && r < 2) { if (r == 0) vc = new HUDViewController(); //vc = new CoverflowViewController(); else vc = new HUDViewController(); //vc = new GraphController(); //vc = new UIViewController(); vc.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve; _vc.PresentModalViewController(vc, true); return; } if(s == 0 && r == 2) { //vc = new DemoCalendarMonth(); } if(s==0&&r==2) vc = new DemoCalendarMonth(); //vc = [[DemoCalendarMonth alloc] initWithSunday:NO]; else if(s==1 && r==0) vc = new EmptyViewController(); else if(s==1 && r==1) vc = new HUDViewController(); else if(s==1 && r==2) vc = new AlertsViewController(); else if(s==1 && r==3) vc = new MapViewController(); else if(s==2 && r==0) vc = new HUDViewController(); //vc = [[LabelViewController alloc] initWithStyle:UITableViewStyleGrouped]; else if(s==2 && r==1) vc = new HUDViewController(); //vc = [[MoreCellsViewController alloc] initWithStyle:UITableViewStyleGrouped]; else if(s==2 && r==2) vc = new HUDViewController(); //vc = [[FastTableViewController alloc] init]; else vc = new TweetViewController(); _vc.NavigationController.PushViewController(vc, true); }