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

#import <B2CalendarViewController.h>

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

Instance Methods

(instancetype) - init [implementation]
 
(void) - viewDidLoad [implementation]
 
(void) - deviceOrientationDidChange: [implementation]
 
(void) - orientLoadUI [implementation]
 
(void) - viewDidLoadPortrait [implementation]
 
(void) - viewDidLoadLandscape [implementation]
 
(void) - orientAppearUI [implementation]
 
(void) - viewDidAppearPortrait [implementation]
 
(void) - viewDidAppearLandscape [implementation]
 
(void) - viewWillAppear: [implementation]
 
(void) - didChangeCalendarDate: [implementation]
 
(void) - didChangeCalendarDate:withType:withEvent: [implementation]
 
(void) - didDoubleTapCalendar:withType: [implementation]
 
(void) - didSelectRangeForStartDate:andEndDate: [implementation]
 
(NSString *) - produceDateLabelText [implementation]
 
(void) - didClickMonthHeader [implementation]
 
(void) - didClickPageBck [implementation]
 
(void) - didClickPageFwd [implementation]
 
(void) - didReceiveMemoryWarning [implementation]
 

Detailed Description

Recent Meals Calendar

dot_structureB2CalendarView.png

msc_initializationB2CalendarSeq
Calendar View Initialization

Definition at line 14 of file B2CalendarViewController.h.

Method Documentation

◆ deviceOrientationDidChange:()

- (void) deviceOrientationDidChange: (NSNotification *)  notification
implementation

Thanks to http://stackoverflow.com/questions/12126098/how-to-detect-rotation-for-a-programatically-generated-uiview

Definition at line 77 of file B2CalendarViewController.m.

77  :(NSNotification *)notification {
78  // NSLog(@"B2CalendarViewController.deviceOrientationDidChange: %@", notification);
79  [self orientAppearUI];
80 }

◆ didChangeCalendarDate:()

- (void) didChangeCalendarDate: (NSDate *)  date
implementation

Definition at line 358 of file B2CalendarViewController.m.

358  :(NSDate *)date
359 {
360  NSLog(@"B2CalendarViewController.didChangeCalendarDate: date: %@", date);
361 
362 }

◆ didChangeCalendarDate:withType:withEvent:()

- (void) didChangeCalendarDate: (NSDate *)  date
withType: (NSInteger)  type
withEvent: (NSInteger)  event 
implementation

Definition at line 365 of file B2CalendarViewController.m.

365  :(NSDate *)date withType:(NSInteger)type withEvent:(NSInteger)event
366 {
367  NSLog(@"B2CalendarViewController.didChangeCalendarDate: %@ withType: %ld withEvent: %ld", date, (long)type, (long)event);
368  switch(event) {
369  case 0:
370  NSLog(@"B2CalendarViewController.didChangeCalendarDate: chg adv/rev by month");
371  break;
372  case 1:
373  {
374  Z5LocalDataController *localData = [[Z5DataController sharedInstance] localDataController];
375 
376  // NSDate *localDate = [localData toLocalTime:date];
377 
378  NSArray<Meal *> *dayMeals = [localData findMealsWithDate: date];
379 
380  if (0 < [dayMeals count]) {
381  Y4MenuPostViewController *menuPostVC = [[Y4MenuPostViewController alloc] init];
382  [menuPostVC setPostedMeals:dayMeals];
383  [menuPostVC setPostingDate:date];
384 
385  NSLog(@"B2CalendarViewController.didChangeCalendarDate");
386 
387  [self.navigationController pushViewController:menuPostVC animated:YES];
388  }
389  }
390 
391  break;
392  }
393 }
instancetype sharedInstance()
NSArray< Meal * > * findMealsWithDate:(NSDate *findDate)
Singleton interface to both core and remote data sources.

◆ didClickMonthHeader()

- (void) didClickMonthHeader
implementation

Definition at line 429 of file B2CalendarViewController.m.

430 {
432  [self.navigationController pushViewController:menuPostVC animated:YES];
433 }

◆ didClickPageBck()

- (void) didClickPageBck
implementation

Definition at line 434 of file B2CalendarViewController.m.

435 {
436  [calendarView rewindCalendarContents];
437  NSString *monthLabel = [self produceDateLabelText];
438  [dateHeaderButton setTitle:monthLabel forState:UIControlStateNormal];
439 
440  [calendarView refreshCalendar];
441 }

◆ didClickPageFwd()

- (void) didClickPageFwd
implementation

Definition at line 443 of file B2CalendarViewController.m.

444 {
445  [calendarView advanceCalendarContents];
446  NSString *monthLabel = [self produceDateLabelText];
447  [dateHeaderButton setTitle:monthLabel forState:UIControlStateNormal];
448 }

◆ didDoubleTapCalendar:withType:()

- (void) didDoubleTapCalendar: (NSDate *)  date
withType: (NSInteger)  type 
implementation

Definition at line 394 of file B2CalendarViewController.m.

394  :(NSDate *)date withType:(NSInteger)type
395 {
396  NSLog(@"B2CalendarViewController.didDoubleTapCalendar");
397 
398 }

◆ didReceiveMemoryWarning()

- (void) didReceiveMemoryWarning
implementation

Definition at line 452 of file B2CalendarViewController.m.

452  {
453  [super didReceiveMemoryWarning];
454  // Dispose of any resources that can be recreated.
455 }

◆ didSelectRangeForStartDate:andEndDate:()

- (void) didSelectRangeForStartDate: (NSDate *)  startDate
andEndDate: (NSDate *)  endDate 
implementation

Definition at line 399 of file B2CalendarViewController.m.

399  :(NSDate *) startDate andEndDate:(NSDate *) endDate
400 {
401  [mDateFormatter setDateStyle:NSDateFormatterMediumStyle];
402  [mDateFormatter setTimeStyle:NSDateFormatterShortStyle];
403 
404  NSLog(@"B2CalendarViewController.didSelectRangeForStartDate: %@ and EndDate: %@", [mDateFormatter stringFromDate:startDate], [mDateFormatter stringFromDate:endDate]);
405 }
NSDateFormatter * mDateFormatter

◆ init()

- (instancetype) init
implementation

Definition at line 49 of file B2CalendarViewController.m.

50 {
51  self = [super init];
52  if (self) {
53  mDateFormatter = [[NSDateFormatter alloc] init];
54  }
55  return self;
56 }
NSDateFormatter * mDateFormatter

◆ orientAppearUI()

- (void) orientAppearUI
implementation

Definition at line 235 of file B2CalendarViewController.m.

235  {
236  NSLog(@"B2CalendarViewController.orientAppearUI");
237  UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
238  switch (orientation)
239  {
240  case UIDeviceOrientationPortrait:
241  case UIDeviceOrientationFaceUp:
242  {
243  [self viewDidAppearPortrait];
244  }
245  break;
246  case UIDeviceOrientationLandscapeLeft:
247  case UIDeviceOrientationLandscapeRight:
248  {
249  [self viewDidAppearLandscape];
250  }
251  break;
252  default:
253  {
254  NSLog(@"B2CalendarViewController.viewDidLoad: unk orrientation");
255  }
256  break;
257  }
258 }

◆ orientLoadUI()

- (void) orientLoadUI
implementation

Definition at line 82 of file B2CalendarViewController.m.

82  {
83  // NSLog(@"B2CalendarViewController.orientLoadUI");
84  UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
85  switch (orientation)
86  {
87  case UIDeviceOrientationPortrait:
88  case UIDeviceOrientationFaceUp:
89  {
90  [self viewDidLoadPortrait];
91  }
92  break;
93  case UIDeviceOrientationLandscapeLeft:
94  case UIDeviceOrientationLandscapeRight:
95  {
96  [self viewDidLoadLandscape];
97  }
98  break;
99  default:
100  {
101  NSLog(@"B2CalendarViewController.orientLoadUI: unk orrientation");
102  }
103  break;
104  }
105 }

◆ produceDateLabelText()

- (NSString *) produceDateLabelText
implementation

Definition at line 409 of file B2CalendarViewController.m.

410 {
411 // NSCalendar *gregorian = [[NSCalendar alloc]
412 // initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
413 // NSDateComponents *dateComponents =
414 // [gregorian components:(NSCalendarUnitMonth|NSCalendarUnitYear) fromDate:[calendarView currentDate]];
415 // NSInteger monthId = [dateComponents month];
416 // NSInteger yearId = [dateComponents year];
417 // NSString *monthLabel = [[NSString alloc] initWithFormat:@" - %ld/%ld -", (long)monthId, (long)yearId];
418 
419 // [mDateFormatter setDateStyle:NSDateFormatterLongStyle];
420 // [mDateFormatter setTimeStyle:NSDateFormatterNoStyle];
421 // NSString *monthLabel = [mDateFormatter stringFromDate:[calendarView currentDate]];
422 
423  //NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
424  mDateFormatter.dateFormat = @"MMM yyyy";
425  NSString *monthLabel = [mDateFormatter stringFromDate:[calendarView currentDate]];
426 
427  return monthLabel;
428 }
NSDateFormatter * mDateFormatter

◆ viewDidAppearLandscape()

- (void) viewDidAppearLandscape
implementation

Definition at line 302 of file B2CalendarViewController.m.

303 {
304  CGSize totalFrameSize = self.view.frame.size;
305  CGRect topNavigationFrame = [[[self navigationController] navigationBar] frame];
306  float topOfPageF = topNavigationFrame.origin.y + topNavigationFrame.size.height;
307  topOfPageF +=2.0;
308 
309  float dirButtonWidth = 60.0;
310  float centerLabelWidth = totalFrameSize.width - (2 * dirButtonWidth) - 8.0;
311  float buttonHeight = 46.0;
312 
313  float bckMonthButtonLeftEdge = 4.0f;
314  CGRect bckMonthFrame =CGRectMake(bckMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
315  [bckMonthButton setFrame:bckMonthFrame];
316 
317  float dateHeaderButtonLeftEdge = dirButtonWidth + 8.0f;
318  float labelWidth = centerLabelWidth-4.0;
319  CGRect dateHeaderButtonFrame = CGRectMake(dateHeaderButtonLeftEdge, topOfPageF, labelWidth, buttonHeight);
320  [dateHeaderButton setFrame:dateHeaderButtonFrame];
321 
322  float fwdMonthButtonLeftEdge =totalFrameSize.width - (dirButtonWidth+4.0);
323  CGRect fwdMonthFrame =CGRectMake(fwdMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
324  [fwdMonthButton setFrame:fwdMonthFrame];
325 
326  //topOfPageF += 4.0;
327  topOfPageF += buttonHeight;
328 
329 // calendarView = [[B2NutritionCalendarView alloc] initWithPosition:6.0 y:topOfPageF];
330 // [calendarView setBgColor:[[Z5DataController sharedInstance] wheatColor]];
331 // [calendarView setPreferredWeekStartIndex:0];
332 // [calendarView setCalendarDelegate:self];
333 
334  float calendarWidth = totalFrameSize.width-12;
335  float calendarHeight = totalFrameSize.height-12-topOfPageF;
336  CGRect calendarFrame = CGRectMake(6, topOfPageF+6, calendarWidth, totalFrameSize.height-12-topOfPageF);
337  [calendarView setFrame:calendarFrame];
338 
339  float dayCellWidth = calendarWidth/8;
340  float dayCellHeight = calendarHeight/6;
341  [calendarView setDayCellWidth:dayCellWidth];
342  [calendarView setDayCellHeight:dayCellHeight];
343  [calendarView refresh];
344 }

◆ viewDidAppearPortrait()

- (void) viewDidAppearPortrait
implementation

Definition at line 259 of file B2CalendarViewController.m.

260 {
261  CGSize totalFrameSize = self.view.frame.size;
262  CGRect topNavigationFrame = [[[self navigationController] navigationBar] frame];
263  float topOfPageF = topNavigationFrame.origin.y + topNavigationFrame.size.height;
264  topOfPageF +=2.0;
265 
266  float dirButtonWidth = 60.0;
267  float centerLabelWidth = totalFrameSize.width - (2 * dirButtonWidth) - 8.0;
268  float buttonHeight = 46.0;
269 
270  float bckMonthButtonLeftEdge = 4.0f;
271  CGRect bckMonthFrame =CGRectMake(bckMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
272  [bckMonthButton setFrame:bckMonthFrame];
273 
274  float dateHeaderButtonLeftEdge = dirButtonWidth + 8.0f;
275  float labelWidth = centerLabelWidth-4.0;
276  CGRect dateHeaderButtonFrame = CGRectMake(dateHeaderButtonLeftEdge, topOfPageF, labelWidth, buttonHeight);
277  [dateHeaderButton setFrame:dateHeaderButtonFrame];
278 
279  float fwdMonthButtonLeftEdge =totalFrameSize.width - (dirButtonWidth+4.0);
280  CGRect fwdMonthFrame =CGRectMake(fwdMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
281  [fwdMonthButton setFrame:fwdMonthFrame];
282 
283  topOfPageF += buttonHeight;
284 
285 // calendarView = [[B2NutritionCalendarView alloc] initWithPosition:6.0 y:topOfPageF];
286 // [calendarView setBgColor:[[Z5DataController sharedInstance] wheatColor]];
287 // [calendarView setPreferredWeekStartIndex:0];
288 // [calendarView setCalendarDelegate:self];
289 // // [calendarView setCurrentDate:[NSDate currentDateInSystemTimezone]];
290 //
291  float calendarWidth = totalFrameSize.width-12;
292  float calendarHeight = totalFrameSize.height-12-topOfPageF;
293  CGRect calendarFrame = CGRectMake(6, topOfPageF+6, calendarWidth, totalFrameSize.height-12-topOfPageF);
294  [calendarView setFrame:calendarFrame];
295 
296  float dayCellWidth = calendarWidth/8;
297  float dayCellHeight = calendarHeight/6;
298  [calendarView setDayCellWidth:dayCellWidth];
299  [calendarView setDayCellHeight:dayCellHeight];
300  [calendarView refresh];
301 }

◆ viewDidLoad()

- (void) viewDidLoad
implementation

Definition at line 57 of file B2CalendarViewController.m.

57  {
58  [super viewDidLoad];
59  // Do any additional setup after loading the view.
60  self.title = @"Log";
61 
62  NSString *imageName = @"softGreenBackgroud.png";
63  self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:imageName]]];
64 
65  [self orientLoadUI];
66 
67  [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
68  [[NSNotificationCenter defaultCenter] addObserver:self
69  selector:@selector(deviceOrientationDidChange:)
70  name: UIDeviceOrientationDidChangeNotification
71  object: nil];
72 
73 }

◆ viewDidLoadLandscape()

- (void) viewDidLoadLandscape
implementation

Definition at line 169 of file B2CalendarViewController.m.

170 {
171  CGSize totalFrameSize = self.view.frame.size;
172  CGRect topNavigationFrame = [[[self navigationController] navigationBar] frame];
173  float topOfPageF = topNavigationFrame.origin.y + topNavigationFrame.size.height;
174  topOfPageF +=2.0;
175 
176  float dirButtonWidth = 60.0;
177  float centerLabelWidth = totalFrameSize.width - (2 * dirButtonWidth) - 8.0;
178  float buttonHeight = 46.0;
179  UIColor *gradientBandColor = [[Z5DataController sharedInstance] wheatColor]; // [UIColor blueColor];
180  UIColor *buttonBckgrndColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.60 alpha:0.9];
181 
182 
183  float bckMonthButtonLeftEdge = 4.0f;
184  CGRect bckMonthFrame =CGRectMake(bckMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
185  bckMonthButton = [[UIButton alloc] initWithFrame:bckMonthFrame];
186  [bckMonthButton setBackgroundColor:buttonBckgrndColor];
187  [bckMonthButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
188  [bckMonthButton addGradientFace:gradientBandColor];
189  [bckMonthButton setTitle:@"<<" forState:UIControlStateNormal];
190  [bckMonthButton addTarget:self action:@selector(didClickPageBck) forControlEvents:UIControlEventTouchUpInside];
191  [self.view addSubview:bckMonthButton];
192 
193  float dateHeaderButtonLeftEdge = dirButtonWidth + 8.0f;
194  float labelWidth = centerLabelWidth-4.0;
195  CGRect dateHeaderButtonFrame = CGRectMake(dateHeaderButtonLeftEdge, topOfPageF, labelWidth, buttonHeight);
196  dateHeaderButton = [[UIButton alloc] initWithFrame:dateHeaderButtonFrame];
197  [dateHeaderButton setBackgroundColor:[UIColor whiteColor]];
198  [dateHeaderButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
199  [dateHeaderButton addGradientFace:gradientBandColor];
200  [dateHeaderButton addTarget:self action:@selector(didClickMonthHeader) forControlEvents:UIControlEventTouchUpInside];
201  [self.view addSubview:dateHeaderButton];
202 
203  float fwdMonthButtonLeftEdge =totalFrameSize.width - (dirButtonWidth+4.0);
204  CGRect fwdMonthFrame =CGRectMake(fwdMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
205  fwdMonthButton = [[UIButton alloc] initWithFrame:fwdMonthFrame];
206  [fwdMonthButton setBackgroundColor:[UIColor whiteColor]];
207  [fwdMonthButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
208  [fwdMonthButton addGradientFace:gradientBandColor];
209  [fwdMonthButton setTitle:@">>" forState:UIControlStateNormal];
210  [fwdMonthButton addTarget:self action:@selector(didClickPageFwd) forControlEvents:UIControlEventTouchUpInside];
211  [self.view addSubview:fwdMonthButton];
212 
213  //topOfPageF += 4.0;
214  topOfPageF += buttonHeight;
215 
216  calendarView = [[B2NutritionCalendarView alloc] initWithPosition:6.0 y:topOfPageF];
217  [calendarView setBgColor:[[Z5DataController sharedInstance] wheatColor]];
218  [calendarView setPreferredWeekStartIndex:0];
219  [calendarView setCalendarDelegate:self];
220  // [calendarView setCurrentDate:[NSDate currentDateInSystemTimezone]];
221 
222  float calendarWidth = totalFrameSize.width-12;
223  float calendarHeight = totalFrameSize.height-12-topOfPageF;
224  CGRect calendarFrame = CGRectMake(6, topOfPageF+6, calendarWidth, totalFrameSize.height-12-topOfPageF);
225  [calendarView setFrame:calendarFrame];
226 
227  float dayCellWidth = calendarWidth/8;
228  float dayCellHeight = calendarHeight/6;
229  [calendarView setDayCellWidth:dayCellWidth];
230  [calendarView setDayCellHeight:dayCellHeight];
231  [calendarView refresh];
232  [self.view addSubview:calendarView];
233 }
instancetype sharedInstance()
UIButton * dateHeaderButton
B2NutritionCalendarView * calendarView
UIButton * fwdMonthButton
Singleton interface to both core and remote data sources.
UIButton * bckMonthButton

◆ viewDidLoadPortrait()

- (void) viewDidLoadPortrait
implementation

Definition at line 106 of file B2CalendarViewController.m.

107 {
108  CGSize totalFrameSize = self.view.frame.size;
109  CGRect topNavigationFrame = [[[self navigationController] navigationBar] frame];
110  float topOfPageF = topNavigationFrame.origin.y + topNavigationFrame.size.height;
111  topOfPageF +=2.0;
112 
113  float dirButtonWidth = 60.0;
114  float centerLabelWidth = totalFrameSize.width - (2 * dirButtonWidth) - 8.0;
115  float buttonHeight = 46.0;
116  UIColor *gradientBandColor = [[Z5DataController sharedInstance] wheatColor]; // [UIColor blueColor];
117  UIColor *buttonBckgrndColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.60 alpha:0.9];
118 
119  float bckMonthButtonLeftEdge = 4.0f;
120  CGRect bckMonthFrame = CGRectMake(bckMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
121  bckMonthButton = [[UIButton alloc] initWithFrame:bckMonthFrame];
122  [bckMonthButton setBackgroundColor:buttonBckgrndColor];
123  [bckMonthButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
124  [bckMonthButton addGradientFace:gradientBandColor];
125  [bckMonthButton setTitle:@"<<" forState:UIControlStateNormal];
126  [bckMonthButton addTarget:self action:@selector(didClickPageBck) forControlEvents:UIControlEventTouchUpInside];
127  [self.view addSubview:bckMonthButton];
128 
129  float dateHeaderButtonLeftEdge = dirButtonWidth + 8.0f;
130  float labelWidth = centerLabelWidth-4.0;
131  CGRect dateHeaderButtonFrame = CGRectMake(dateHeaderButtonLeftEdge, topOfPageF, labelWidth, buttonHeight);
132  dateHeaderButton = [[UIButton alloc] initWithFrame:dateHeaderButtonFrame];
133  [dateHeaderButton setBackgroundColor:[UIColor whiteColor]];
134  [dateHeaderButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
135  [dateHeaderButton addGradientFace:gradientBandColor];
136  [dateHeaderButton addTarget:self action:@selector(didClickMonthHeader) forControlEvents:UIControlEventTouchUpInside];
137  [self.view addSubview:dateHeaderButton];
138 
139  float fwdMonthButtonLeftEdge =totalFrameSize.width - (dirButtonWidth+4.0);
140  CGRect fwdMonthFrame =CGRectMake(fwdMonthButtonLeftEdge, topOfPageF, dirButtonWidth, buttonHeight);
141  fwdMonthButton = [[UIButton alloc] initWithFrame:fwdMonthFrame];
142  [fwdMonthButton setBackgroundColor:[UIColor whiteColor]];
143  [fwdMonthButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
144  [fwdMonthButton addGradientFace:gradientBandColor];
145  [fwdMonthButton setTitle:@">>" forState:UIControlStateNormal];
146  [fwdMonthButton addTarget:self action:@selector(didClickPageFwd) forControlEvents:UIControlEventTouchUpInside];
147  [self.view addSubview:fwdMonthButton];
148 
149  topOfPageF += buttonHeight;
150 
151  calendarView = [[B2NutritionCalendarView alloc] initWithPosition:6.0 y:topOfPageF];
152  [calendarView setBgColor:[[Z5DataController sharedInstance] wheatColor]];
153  [calendarView setPreferredWeekStartIndex:0];
154  [calendarView setCalendarDelegate:self];
155  // [calendarView setCurrentDate:[NSDate currentDateInSystemTimezone]];
156 
157  float calendarWidth = totalFrameSize.width-12;
158  float calendarHeight = totalFrameSize.height-12-topOfPageF;
159  CGRect calendarFrame = CGRectMake(6, topOfPageF+6, calendarWidth, totalFrameSize.height-12-topOfPageF);
160  [calendarView setFrame:calendarFrame];
161 
162  float dayCellWidth = calendarWidth/8;
163  float dayCellHeight = calendarHeight/6;
164  [calendarView setDayCellWidth:dayCellWidth];
165  [calendarView setDayCellHeight:dayCellHeight];
166  [calendarView refresh];
167  [self.view addSubview:calendarView];
168 }
instancetype sharedInstance()
UIButton * dateHeaderButton
B2NutritionCalendarView * calendarView
UIButton * fwdMonthButton
Singleton interface to both core and remote data sources.
UIButton * bckMonthButton

◆ viewWillAppear:()

- (void) viewWillAppear: (BOOL)  animated
implementation

Definition at line 346 of file B2CalendarViewController.m.

346  :(BOOL)animated
347 {
348  [self orientAppearUI];
349 
350  NSString *monthLabel = [self produceDateLabelText];
351  [dateHeaderButton setTitle:monthLabel forState:UIControlStateNormal];
352 
353  [calendarView refreshCalendar];
354 }

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