public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell((NSString)this.NameListCellId); if (cell == null) { cell = new MovieCell(NameListCellId); } cell.UpdateCell(this._movies[indexPath.Row]); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell((NSString)this.TopRatedCellId); if (cell == null) { cell = new MovieCell(this.TopRatedCellId, _downloader); //UITableViewCell(UITableViewCellStyle.Default, this.MovieListCellId); } //cell.UpdateCell(this._response.Results[indexPath.Row]); //TextLabel.Text = this._response.Results[indexPath.Row].Title; return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { MovieCell cell = tableView.DequeueReusableCell (cellIdentifier) as MovieCell; Movie movie = data[indexPath.Row]; if (cell == null) { cell = new MovieCell(); } cell.UpdateCell (movie); return cell; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell(this.MovieListCellId); if (cell == null) { cell = new MovieCell(this.MovieListCellId); } var movie = this._movies[indexPath.Row]; cell.UpdateCell(movie); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell((NSString)this.MovieListCellId); if (cell == null) { cell = new MovieCell(this.MovieListCellId); } var movie = this._movieList[indexPath.Row]; cell.UpdateCell(movie.Title, movie.ReleaseYear.ToString(), movie.Actors, movie.PosterPath); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell((NSString)this.movieCellId); tableView.RowHeight = 60; tableView.BackgroundColor = UIColor.FromRGB(51, 51, 51); if (cell == null) { cell = new MovieCell(this.movieCellId); } var movie = this._movies[indexPath.Row]; cell.UpdateCell(movie); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = (MovieCell)tableView.DequeueReusableCell(this.MovieListCellId); if (cell == null) { cell = new MovieCell((NSString)this.MovieListCellId); } int row = indexPath.Row; string titleDisp = this._movies[row].info.Title + " (" + this._movies[row].info.ReleaseDate.Year.ToString() + ")"; string actorsDisp = this._movies[row].casts; string img = _movies[row].poster; MovieCellDTO dto = new MovieCellDTO(titleDisp, actorsDisp, img); cell.UpdateCell(dto); return(cell); }