示例#1
0
 public ChallengesTableSource(ChallengesTableView challengesTableView, SLViewController _SLViewController)
 {
     ChallengesTableView = challengesTableView;
     SLViewController    = _SLViewController;
     ItemsSource         = new List <ChallengeModel>();
     sectionsTitles      = new List <string>();
     SectionsTitles      = new List <string>();
     RefreshItemSource();
 }
示例#2
0
        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);
        }