Today's Menu  Portugal
journal and plan nutrition
Y3MailDisplayRecipeViewController.m
Go to the documentation of this file.
1 //
2 // Y3MailDisplayRecipeViewController.m
3 // TodaysMenu
4 //
5 // Created by Don Zeek on 7/9/18.
6 // Copyright © 2018 net.dzeek.y2015.ios.portfolio. All rights reserved.
7 //
8 
10 
12 
13 @end
14 
16 
17 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
18 {
19  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
20  if (self) {
21  self.title = @"Recipe";
22  }
23  return self;
24 }
25 
26 - (void)viewDidLoad {
27  [super viewDidLoad];
28 
29  CGRect totalFrame = self.view.frame;
30  // float navigationBarHeight = 62.0;
31 
32  UIImage *backgrdImage = [UIImage imageNamed:@"orangeIrisCorbett.png"];
33  UIImageView *backgrd = [[UIImageView alloc] initWithImage:backgrdImage];
34  // float topSpace = navigationBarHeight + instructionPanelHeight;
35  float topSpace = 0.0; // TODO: tune page placement
36  CGRect backImageFrame = CGRectMake(0.0, topSpace, totalFrame.size.width, totalFrame.size.height - topSpace);
37  [backgrd setFrame:backImageFrame];
38  [self.view addSubview:backgrd];
39 }
40 
42  [super didReceiveMemoryWarning];
43  // Dispose of any resources that can be recreated.
44 }
45 
46 /*
47 #pragma mark - Navigation
48 
49 // In a storyboard-based application, you will often want to do a little preparation before navigation
50 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
51  // Get the new view controller using [segue destinationViewController].
52  // Pass the selected object to the new view controller.
53 }
54 */
55 
56 @end