#import <V7UsdaFoodsTableView.h>
Definition at line 12 of file V7UsdaFoodsTableView.h.
◆ getViewHeightReqmt()
- (float) getViewHeightReqmt |
|
|
|
|
implementation |
Reimplemented from Z7EmpaneledTableView.
Definition at line 74 of file V7UsdaFoodsTableView.m.
76 NSArray<NSDictionary *> *foodEntries = [dataDelegate retrieveFoodEntries];
77 NSInteger nFoods = [foodEntries count];
79 float ret = [
super getViewHeightReqmt] + nFoods * 42.0;
80 NSLog(
@"V7UsdaFoodsTableView.getViewHeightReqmt: ret: %3.2f", ret);
◆ initWithFrame:andHeader:inContainer:()
- (id) initWithFrame: |
|
(CGRect) |
frame |
andHeader: |
|
(UIView *) |
headerView |
inContainer: |
|
(id<V7UsdaFoodsTableDelegate>) |
container |
|
|
| |
Initial value:{
id<V7UsdaFoodsTableDelegate> dataDelegate
Definition at line 16 of file V7UsdaFoodsTableView.m.
18 inContainer:(id<V7UsdaFoodsTableDelegate>) container
20 NSLog(
@"Z7UsdaFoodsTableView.init");
22 self = [
super initWithFrame:frame];
23 [
self setTableHeaderView:headerView];
25 self.dataSource =
self;
27 dataDelegate = container;
instancetype sharedInstance()
Singleton interface to both core and remote data sources.
UIView< Z6ContainedView > * headerView
◆ tableView:cellForRowAtIndexPath:()
- (UITableViewCell *) tableView: |
|
(UITableView *) |
tableView |
cellForRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
|
implementation |
Definition at line 44 of file V7UsdaFoodsTableView.m.
44 :(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
46 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"todays-menu"];
47 NSLog(
@"V7UsdaFoodsTableView.cellForRow: cell: %@", cell);
49 cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"todays-menu"];
51 cell.contentView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
53 CGRect contentRect = [cell.contentView frame];
54 CGRect fetchPublishButton1Frame = CGRectMake(contentRect.size.width - 86.0f, 5.0, 34.0f, contentRect.size.height - 10);
55 UIButton *pushMe = [[UIButton alloc] initWithFrame:fetchPublishButton1Frame];
56 [pushMe setTitle:@"GO" forState:UIControlStateApplication];
58 [cell.contentView addSubview:pushMe];
61 NSArray<NSDictionary *> *foodEntries = [dataDelegate retrieveFoodEntries];
62 NSInteger nMesgs = [foodEntries count];
64 if (nMesgs > [indexPath row]) {
65 NSDictionary *foodForCell = [foodEntries objectAtIndex:[indexPath row]];
66 NSString *caption = [foodForCell objectForKey:@"name"];
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)
◆ tableView:didSelectRowAtIndexPath:()
- (void) tableView: |
|
(UITableView *) |
tableView |
didSelectRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
|
implementation |
Definition at line 84 of file V7UsdaFoodsTableView.m.
84 :(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
◆ tableView:numberOfRowsInSection:()
- (NSInteger) tableView: |
|
(UITableView *) |
tableView |
numberOfRowsInSection: |
|
(NSInteger) |
section |
|
|
| |
|
implementation |
Definition at line 37 of file V7UsdaFoodsTableView.m.
37 :(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
39 NSArray<NSDictionary *> *foodEntries = [dataDelegate retrieveFoodEntries];
40 NSInteger nMesgs = [foodEntries count];
The documentation for this class was generated from the following files: