Skip to content

Commit 3fb9ae3

Browse files
committed
Initial Push
0 parents  commit 3fb9ae3

File tree

97 files changed

+6386
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6386
-0
lines changed

IngredientCell.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//
2+
// IngredientCell.h

IngredientCell.m

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// IngredientCell.m
3+
// WhatToEat
4+
//
5+
// Created by Creonopoulos Creon on 4/13/13.
6+
// Copyright (c) 2013 apt.gr. All rights reserved.
7+
//
8+
9+
#import "IngredientCell.h"
10+
11+
@implementation IngredientCell
12+
13+
@synthesize Ingredient=_Ingredient,IngredImage=_IngredImage;
14+
15+
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
16+
{
17+
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
18+
if (self) {
19+
20+
}
21+
return self;
22+
}
23+
24+
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
25+
{
26+
[super setSelected:selected animated:animated];
27+
28+
// Configure the view for the selected state
29+
}
30+
31+
@end

Ingredients.plist

+246
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<array>
5+
<dict>
6+
<key>Ingredient</key>
7+
<string>Apples</string>
8+
<key>Image</key>
9+
<string>Apples.png</string>
10+
</dict>
11+
<dict>
12+
<key>Ingredient</key>
13+
<string>Avocado</string>
14+
<key>Image</key>
15+
<string>Avocado.png</string>
16+
</dict>
17+
<dict>
18+
<key>Ingredient</key>
19+
<string>Bacon</string>
20+
<key>Image</key>
21+
<string>Bacon.png</string>
22+
</dict>
23+
<dict>
24+
<key>Ingredient</key>
25+
<string>Baking Powder</string>
26+
<key>Image</key>
27+
<string>Baking Powder.png</string>
28+
</dict>
29+
<dict>
30+
<key>Ingredient</key>
31+
<string>Beans</string>
32+
<key>Image</key>
33+
<string>Beans.png</string>
34+
</dict>
35+
<dict>
36+
<key>Ingredient</key>
37+
<string>Beef</string>
38+
<key>Image</key>
39+
<string>Beef.png</string>
40+
</dict>
41+
<dict>
42+
<key>Ingredient</key>
43+
<string>Beef Broth</string>
44+
<key>Image</key>
45+
<string>Beef Broth.png</string>
46+
</dict>
47+
<dict>
48+
<key>Ingredient</key>
49+
<string>Beer</string>
50+
<key>Image</key>
51+
<string>Beer.png</string>
52+
</dict>
53+
<dict>
54+
<key>Ingredient</key>
55+
<string>Bread</string>
56+
<key>Image</key>
57+
<string>Bread.png</string>
58+
</dict>
59+
<dict>
60+
<key>Ingredient</key>
61+
<string>Butter</string>
62+
<key>Image</key>
63+
<string>Butter.png</string>
64+
</dict>
65+
<dict>
66+
<key>Ingredient</key>
67+
<string>Cheese</string>
68+
<key>Image</key>
69+
<string>Cheese.png</string>
70+
</dict>
71+
<dict>
72+
<key>Ingredient</key>
73+
<string>Chicken</string>
74+
<key>Image</key>
75+
<string>Chicken.png</string>
76+
</dict>
77+
<dict>
78+
<key>Ingredient</key>
79+
<string>Chicken Broth</string>
80+
<key>Image</key>
81+
<string>Chicken Broth.png</string>
82+
</dict>
83+
<dict>
84+
<key>Ingredient</key>
85+
<string>Chili</string>
86+
<key>Image</key>
87+
<string>Chilli.png</string>
88+
</dict>
89+
<dict>
90+
<key>Ingredient</key>
91+
<string>Corn</string>
92+
<key>Image</key>
93+
<string>Corn.png</string>
94+
</dict>
95+
<dict>
96+
<key>Ingredient</key>
97+
<string>Eggs</string>
98+
<key>Image</key>
99+
<string>Eggs.png</string>
100+
</dict>
101+
<dict>
102+
<key>Ingredient</key>
103+
<string>Fish</string>
104+
<key>Image</key>
105+
<string>Fish.png</string>
106+
</dict>
107+
<dict>
108+
<key>Ingredient</key>
109+
<string>Flour</string>
110+
<key>Image</key>
111+
<string>Flour.png</string>
112+
</dict>
113+
<dict>
114+
<key>Ingredient</key>
115+
<string>Garlic</string>
116+
<key>Image</key>
117+
<string>Garlic.png</string>
118+
</dict>
119+
<dict>
120+
<key>Ingredient</key>
121+
<string>Ground Beef</string>
122+
<key>Image</key>
123+
<string>Ground Beef.png</string>
124+
</dict>
125+
<dict>
126+
<key>Ingredient</key>
127+
<string>Honey</string>
128+
<key>Image</key>
129+
<string>Honey.png</string>
130+
</dict>
131+
<dict>
132+
<key>Ingredient</key>
133+
<string>Ketchup</string>
134+
<key>Image</key>
135+
<string>Ketchup.png</string>
136+
</dict>
137+
<dict>
138+
<key>Ingredient</key>
139+
<string>Lemon Juice</string>
140+
<key>Image</key>
141+
<string>Lemon Juice.png</string>
142+
</dict>
143+
<dict>
144+
<key>Ingredient</key>
145+
<string>Lime Juice</string>
146+
<key>Image</key>
147+
<string>Lime Juice.png</string>
148+
</dict>
149+
<dict>
150+
<key>Ingredient</key>
151+
<string>Mayonnaise</string>
152+
<key>Image</key>
153+
<string>Mayonnaise.png</string>
154+
</dict>
155+
<dict>
156+
<key>Ingredient</key>
157+
<string>Milk</string>
158+
<key>Image</key>
159+
<string>Milk.png</string>
160+
</dict>
161+
<dict>
162+
<key>Ingredient</key>
163+
<string>Noodles</string>
164+
<key>Image</key>
165+
<string>Noodles.png</string>
166+
</dict>
167+
<dict>
168+
<key>Ingredient</key>
169+
<string>Oats</string>
170+
<key>Image</key>
171+
<string>Oats.png</string>
172+
</dict>
173+
<dict>
174+
<key>Ingredient</key>
175+
<string>Oil</string>
176+
<key>Image</key>
177+
<string>Oil.png</string>
178+
</dict>
179+
<dict>
180+
<key>Ingredient</key>
181+
<string>Pasta</string>
182+
<key>Image</key>
183+
<string>Pasta.png</string>
184+
</dict>
185+
<dict>
186+
<key>Ingredient</key>
187+
<string>Peanut Butter</string>
188+
<key>Image</key>
189+
<string>Peanut Butter.png</string>
190+
</dict>
191+
<dict>
192+
<key>Ingredient</key>
193+
<string>Peppers</string>
194+
<key>Image</key>
195+
<string>Peppers.png</string>
196+
</dict>
197+
<dict>
198+
<key>Ingredient</key>
199+
<string>Potatoes</string>
200+
<key>Image</key>
201+
<string>Potatoes.png</string>
202+
</dict>
203+
<dict>
204+
<key>Ingredient</key>
205+
<string>Rice</string>
206+
<key>Image</key>
207+
<string>Rice.png</string>
208+
</dict>
209+
<dict>
210+
<key>Ingredient</key>
211+
<string>Salsa</string>
212+
<key>Image</key>
213+
<string>Salsa.png</string>
214+
</dict>
215+
<dict>
216+
<key>Ingredient</key>
217+
<string>Sugar</string>
218+
<key>Image</key>
219+
<string>Sugar.png</string>
220+
</dict>
221+
<dict>
222+
<key>Ingredient</key>
223+
<string>Tomatoes</string>
224+
<key>Image</key>
225+
<string>Tomatoes.png</string>
226+
</dict>
227+
<dict>
228+
<key>Ingredient</key>
229+
<string>Tortilla</string>
230+
<key>Image</key>
231+
<string>Tortilla.png</string>
232+
</dict>
233+
<dict>
234+
<key>Ingredient</key>
235+
<string>Tuna</string>
236+
<key>Image</key>
237+
<string>Tuna.png</string>
238+
</dict>
239+
<dict>
240+
<key>Ingredient</key>
241+
<string>Vinegar</string>
242+
<key>Image</key>
243+
<string>Vinegar.png</string>
244+
</dict>
245+
</array>
246+
</plist>

IngridientTableViewController.h

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// IngridientTableViewController.h
3+
// WhatToEat
4+
//
5+
// Created by Creonopoulos Creon on 3/29/13.
6+
// Copyright (c) 2013 apt.gr. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface IngridientTableViewController : UITableViewController{
12+
13+
//array to hold index of selected ingredients
14+
int switchStateArr[42];
15+
NSMutableDictionary *selectedIndexes;
16+
17+
}
18+
19+
20+
//Array to hold the ingridients
21+
@property (nonatomic,retain)NSMutableArray *Ingridients;
22+
23+
//array to hold the selected ingridients
24+
@property (nonatomic,retain)NSMutableArray *SelectionsArray;
25+
26+
//dictionary to add info to the table data source
27+
@property (nonatomic, retain)NSMutableDictionary *object;
28+
29+
//the table view of the view
30+
@property (strong, nonatomic) IBOutlet UITableView *TableView;
31+
32+
//Cancel button
33+
- (IBAction)CancelButton:(id)sender;
34+
35+
36+
37+
@end

0 commit comments

Comments
 (0)