#import <Y3RecipeCheckViewController.h>
◆ didReceiveMemoryWarning()
- (void) didReceiveMemoryWarning |
|
|
|
|
implementation |
◆ fireParameterEntry()
- (void) fireParameterEntry |
|
|
|
|
implementation |
Definition at line 86 of file Y3RecipeCheckViewController.m.
88 if (nil !=
self.focusMenuItem) {
92 NSLog(
@"CollectionView.fireParameterEntry: focusMenuItem: %@",
self.focusMenuItem);
96 [
self.navigationController pushViewController:parameterView animated:YES];
98 NSLog(
@"CollectionView.fireParameterEntry: nil focusMenuItem");
UITextView * usdaDataViewTextView
UITextView * recipeViewTextView
◆ initWithMenuItem:()
- (id) initWithMenuItem: |
|
(MenuItem *) |
menuItem |
|
◆ viewDidLoad()
Definition at line 30 of file Y3RecipeCheckViewController.m.
33 CGRect totalFrame =
self.view.frame;
34 [
self.view setBackgroundColor:[UIColor greenColor]];
36 CGRect recipeViewFrame = CGRectMake(totalFrame.size.width*0.05,
37 totalFrame.origin.y+totalFrame.size.height*0.180,
38 totalFrame.size.width*0.9,
41 [recipeViewTextView setBackgroundColor:[UIColor whiteColor]];
42 [
self.view addSubview:recipeViewTextView];
44 CGRect usdaDataViewFrame = CGRectMake(totalFrame.size.width*0.05,
45 totalFrame.origin.y+totalFrame.size.height*0.180 + 240,
46 totalFrame.size.width*0.9,
49 [usdaDataViewTextView setBackgroundColor:[UIColor yellowColor]];
50 [
self.view addSubview:usdaDataViewTextView];
52 UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Entry" style:UIBarButtonItemStylePlain target:self action:@selector(fireParameterEntry)];
53 self.navigationItem.rightBarButtonItem = anotherButton;
UITextView * usdaDataViewTextView
UITextView * recipeViewTextView
◆ viewWillAppear:()
- (void) viewWillAppear: |
|
(BOOL) |
animated |
|
|
implementation |
Definition at line 56 of file Y3RecipeCheckViewController.m.
58 [recipeViewTextView setText:[
self.focusMenuItem recipe]];
59 [usdaDataViewTextView setText:[
self.focusMenuItem usdaNumbers]];
◆ viewWillDisappear:()
- (void) viewWillDisappear: |
|
(BOOL) |
animated |
|
|
implementation |
Definition at line 62 of file Y3RecipeCheckViewController.m.
64 [
super viewWillDisappear:animated];
70 NSLog(
@"RecipeCheckController.viewWillDisappear: usdaNumbers: %@", [
self.focusMenuItem usdaNumbers]);
73 NSData *data = [[
self.focusMenuItem usdaNumbers] dataUsingEncoding:NSUTF8StringEncoding];
75 NSDictionary *jsonResponse = [NSJSONSerialization JSONObjectWithData:data
79 NSLog(
@"RecipeCheckController.viewWillDisappear: error: %@", error);
81 NSLog(
@"RecipeCheckController.viewWillDisappear: jsonResponse: %@", jsonResponse);
instancetype sharedInstance()
Singleton interface to both core and remote data sources.
◆ focusMenuItem
|
readwritenonatomicstrongimplementation |
The documentation for this class was generated from the following files: