コード例 #1
0
    public TableViewCell CellForRowInTableView(TableView tableView, int row)
    {
        TableViewCell cell = tableView.ReusableCellForRow("ChallengeTableViewCell", row);

        cell.name = "Cell " + row;

        ChallengeTableViewCell challengeTableViewCell = cell.GetComponent <ChallengeTableViewCell>();

        switch (GlobalVariables.tableViewDataType)
        {
        case 0:
            challengeTableViewCell.SetDefaultImage();
            ChallengeDTO challenge = GlobalVariables.challengeResponse.challenges[row];
            StartCoroutine(challengeTableViewCell.LoadImage(challenge.imageUrl));
            break;

        case 1:
            break;

        default:
            break;
        }
        return(cell);
    }