26 self.title =
@"Snap Meal Captioning";
27 [
self.view setBackgroundColor:[UIColor colorWithHue:0.27 saturation:0.5 brightness:0.7 alpha:1.0]];
31 CGRect totalFrame =
self.view.frame;
32 CGRect topNavigationFrame = [[[
self navigationController] navigationBar] frame];
35 topOfPageFloat = topNavigationFrame.origin.y + topNavigationFrame.size.height;
37 float featureHeight = totalFrame.size.height - topOfPageFloat - 16;;
41 UIImage *backgrdImage = [UIImage imageNamed:@"coffeecakeBackground.png"];
42 CGSize photoSize = [backgrdImage size];
43 float resizeRatio = photoSize.height / totalFrame.size.height;
44 UIImage *resizedImage = [UIImage imageWithCGImage:[backgrdImage CGImage]
45 scale:backgrdImage.scale * resizeRatio
46 orientation:(backgrdImage.imageOrientation) ];
47 UIImageView *backgrd = [[UIImageView alloc] initWithImage:resizedImage];
48 [
self.view addSubview:backgrd];
52 CGRect mealViewFrame = CGRectMake(4, topOfPageFloat+4,
featuresWidthFloat, featureHeight);
55 [
self.view addSubview:mealView];
60 NSLog(
@"P2SnapMealEntryViewController.reviewComplete");
63 [_mealDelegate reviewComplete];
66 [
self.navigationController popViewControllerAnimated:NO];
float sideMarginWidthFloat