15 id<V7GoogDriveTableDelegate> dataDelegate;
19 - (id) initWithFrame:(CGRect)frame
20 andHeader:(UIView *)headerView
21 inContainer:(
id<V7GoogDriveTableDelegate>)container
23 NSLog(
@"V7GoogDriveTableView.init");
26 [
self setTableHeaderView:headerView];
28 self.dataSource =
self;
30 dataDelegate = container;
33 [mDateFormatter setTimeStyle:NSDateFormatterNoStyle];
34 [mDateFormatter setDateStyle:NSDateFormatterMediumStyle];
43 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
45 NSArray<NSString *> *foodEntries = [dataDelegate provideFocusFoodListDriveArray];
46 NSInteger nMesgs = [foodEntries count];
50 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
52 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"todays-drive-item"];
53 NSLog(
@"V7GoogDriveTableView.cellForRow: cell: %@", cell);
55 cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"todays-drive-item"];
57 cell.contentView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
59 CGRect contentRect = [cell.contentView frame];
60 CGRect fetchPublishButton1Frame = CGRectMake(0.0 , 5.0, 34.0f, contentRect.size.height - 10);
61 UIButton *pushMe = [[UIButton alloc] initWithFrame:fetchPublishButton1Frame];
62 [pushMe setBackgroundColor:[UIColor redColor]];
63 [pushMe setTitle:@"GO" forState:UIControlStateApplication];
64 [cell setBackgroundColor:[UIColor pearlColor]];
65 [cell.contentView addSubview:pushMe];
69 NSArray<NSString *> *foodEntries = [dataDelegate provideFocusFoodListDriveArray];
70 NSInteger nMesgs = [foodEntries count];
72 if (nMesgs > [indexPath row]) {
75 NSString *caption = [foodEntries objectAtIndex:[indexPath row]];
92 cell.textLabel.text = caption;
107 NSArray<NSDictionary *> *foodEntries = [dataDelegate provideFocusFoodListDriveArray];
108 NSInteger nFoods = [foodEntries count];
111 NSLog(
@"V7GoogDriveTableView.getViewHeightReqmt: ret: %3.2f", ret);
115 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
id initWithFrame:(CGRect frame)
NSDateFormatter * mDateFormatter
float getViewHeightReqmt()
instancetype sharedInstance()
float getViewHeightReqmt()
void setViewForHead:(UIView< Z6ContainedView > *headView)
Singleton interface to both core and remote data sources.