public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { GuitarDetailModel guitar = _guitars[indexPath.Row]; UITableViewCell cell = tableView.DequeueReusableCell(_cellIdentifier); //if there are no cells to reuse, create a new one if (cell == null) { cell = new UITableViewCell(UITableViewCellStyle.Default, _cellIdentifier); } cell.TextLabel.Text = guitar.Name; return(cell); }
public GuitarDetailViewController(GuitarDetailModel guitar) { this._guitar = guitar; View.BackgroundColor = UIColor.Black; }