public ChallengesTableSource(ChallengesTableView challengesTableView, SLViewController _SLViewController) { ChallengesTableView = challengesTableView; SLViewController = _SLViewController; ItemsSource = new List <ChallengeModel>(); sectionsTitles = new List <string>(); SectionsTitles = new List <string>(); RefreshItemSource(); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { Crashlytics.Instance.Log("Challenges.ChallengesTableSource.GetCell()"); var challenge = GetItemFromIndexWithSection(indexPath); ChallengesTableViewCell cell = (ChallengesTableViewCell)tableView.DequeueReusableCell(ChallengesTableViewCell.ClassName); if (challenge != null) { cell.UpdateCellData(challenge); } else { ChallengesTableView.ReloadData(); //data refreshed during gathering cells } return(cell); }