Today's Menu  Portugal
journal and plan nutrition
Instance Methods | Properties | List of all members
Z3DateTimeFocusView Class Reference

#import <Z3DateTimeFocusView.h>

Inheritance diagram for Z3DateTimeFocusView:
Inheritance graph
[legend]
Collaboration diagram for Z3DateTimeFocusView:
Collaboration graph
[legend]

Instance Methods

(instancetype) - initWithFrame:andDelegate:
 
(void) - clickTopBar [implementation]
 
(float) - heightRequirement [implementation]
 
(void) - appear: [implementation]
 

Properties

NSString * labelCaption
 

Detailed Description

Definition at line 13 of file Z3DateTimeFocusView.h.

Method Documentation

◆ appear:()

- (void) appear: (CGRect)  bound
implementation

Definition at line 43 of file Z3DateTimeFocusView.m.

43  :(CGRect)bound
44 {
45  NSLog(@"DateTimeFocusView.appear: labelCaption: %@", _labelCaption);
46  if (!_labelCaption) {
47  _labelCaption = @"Happy for now";
48  }
49  [self setBackgroundColor:[[Z5DataController sharedInstance] grapeSkinDeepPurple]];
50 
51  [Z5DataController labelizeButton:dateButton withText:_labelCaption];
52 }
instancetype sharedInstance()
Singleton interface to both core and remote data sources.
void labelizeButton:withText:(UIButton *targButton, [withText] NSString *txt)

◆ clickTopBar()

- (void) clickTopBar
implementation

Definition at line 33 of file Z3DateTimeFocusView.m.

34 {
35  NSLog(@"DateTimeFocusView.clickTopBar");
36  [focusDelegate clickAction];
37 }

◆ heightRequirement()

- (float) heightRequirement
implementation

Definition at line 38 of file Z3DateTimeFocusView.m.

39 {
40  float ret = 36.0;
41  return ret;
42 }

◆ initWithFrame:andDelegate:()

- (instancetype) initWithFrame: (CGRect)  frame
andDelegate: (id<Z3DateTimeFocusDelegate>)  delegate 

Definition at line 18 of file Z3DateTimeFocusView.m.

18  :(CGRect)frame andDelegate:(id<Z3DateTimeFocusDelegate>)delegate
19 {
20  self = [super initWithFrame:frame];
21  if (self) {
23 
24  NSLog(@"DateTimeFocusView.initWithFrameAndDelegate: frame height: %3.2f", frame.size.height);
25  CGRect dateButtonFrame = CGRectMake(1, 1, frame.size.width - 2.0, 30);
26  dateButton = [[UIButton alloc] initWithFrame:dateButtonFrame];
27  [dateButton setBackgroundColor:[UIColor greenColor]];
28  [dateButton addTarget:self action:@selector(clickTopBar) forControlEvents:UIControlEventTouchDown];
29  [self addSubview:dateButton];
30  }
31  return self;
32 }
UIButton * dateButton
id< U7ParamEditControlDelegate > delegate
id< Z3DateTimeFocusDelegate > focusDelegate

Property Documentation

◆ labelCaption

- (NSString*) labelCaption
readwritenonatomicstrong

Definition at line 15 of file Z3DateTimeFocusView.h.


The documentation for this class was generated from the following files: