107 :(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath {
108 NSString *cellKey =
@"usda-pdata-display";
109 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellKey];
113 cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellKey];
117 CGRect contentRect = [cell.contentView frame];
118 CGRect fetchPublishButton1Frame = CGRectMake(contentRect.size.width - 86.0f, 5.0, 64.0f, contentRect.size.height - 10);
119 UIButton *pushMe = [[UIButton alloc] initWithFrame:fetchPublishButton1Frame];
120 [pushMe setBackgroundColor:[UIColor grayColor]];
121 [pushMe setTitle:@"GO" forState:UIControlStateNormal];
122 [pushMe setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
124 [cell.contentView addSubview:pushMe];
126 [cell.layer setCornerRadius:7.0f];
127 [cell.layer setMasksToBounds:YES];
128 [cell.layer setBorderWidth:1.0f];
130 [cell.textLabel setTextColor:[UIColor purpleColor]];
131 [cell.textLabel setOpaque:YES];
133 [cell setBackgroundColor:[UIColor brownColor]];
134 NSInteger nComponents = [kitchenTableMenuItems count];
136 if (nComponents > [indexPath row]) {
138 MenuItem *item = [kitchenTableMenuItems objectAtIndex:[indexPath row]];
139 NSString *itemName = [item
name];
142 }
else if (0 == nComponents) {
143 cell.textLabel.text =
@"no food data";
145 NSLog(
@"V3KitchenTableView.tableCellForRow: %3.2f", cell.bounds.size.height);
Singleton interface to both core and remote data sources.
void labelizeCell:withText:inColor:andDetail:(UITableViewCell *targCell, [withText] NSString *txt, [inColor] UIColor *color, [andDetail] NSString *detailTxt)