public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { // NOTE: Don't call the base implementation on a Model class // see http://docs.xamarin.com/ios/tutorials/Events%2c_Protocols_and_Delegates ExamListData _cellExamData = m_userExamTableViewData.ElementAt(indexPath.Section).Value [indexPath.Row]; m_currentViewController.NavigationController.PushViewController(new ExamDetailView(_cellExamData.ExamID), true); tableView.DeselectRow(indexPath, false); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell; cell = tableView.DequeueReusableCell("cell"); if (cell == null) { cell = new UITableViewCell(UITableViewCellStyle.Default, "cell"); } ExamListData _cellExamData = m_userExamTableViewData.ElementAt(indexPath.Section).Value [indexPath.Row]; cell.TextLabel.Text = _cellExamData.ExamName; cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; return(cell); }