iPhone App: The Munchies Developed by Hamra Ibrahim Smaila & Thierno Sow Final Project IASP 555: Wireless Sensor and Mobile Security Dr. John Yoon Mercy College, New York
iPhone App: The Munchies
Developed by
Hamra Ibrahim Smaila
&
Thierno Sow
Final Project IASP 555: Wireless Sensor and Mobile Security
Dr. John Yoon
Mercy College, New York
02 May 2018
Table of ContentsIntroduction………………………………………………...…………………………………….3
Importance of The Munchies App……………………………………………………………..4
What we did………………..…………..................…………………………………………….4
How The Munchies App works……………………………………………………………..….5
List of Food and Recipes……………………………………………………………………....5
Summary……………………………………………………………………………………….19
Bibliography…………………………………………………………………..………………..20
2
Introduction
Xcode is an integrated development environment (IDE) which supports source code for
programming languages such as C, C++, Objective-C, Objective C++, Java,
AppleScript, Ruby, Python Swift and ResEdit. It has a variety of programming models
such as Carbon, java and Cocoa that can be used to build fat files for multiple
architecture that can include both 32-bit and 64-bit code. Xcode can also be used to
compile and debug applications for iOS that run on ARM architecture processors when
used with the iOS SDK.
An application used to construct graphical user interfaces known as the built-in Interface
Builder and documentation used by most Apple’s developers are included in Xcode
suite.
Swift 4 is a powerful and easy to learn programming language. It is an intuitive
programming language, concise yet expressive and produces software that runs
lightning-fast. It delivers greater robustness and stability providing source code
compatibility with Swift 3, making improvements to the standard library, and adding features
like smart key paths and serialization, all while shortening build times and reducing the size
of app binaries.
iPhone Apps are applications developed for use on iPhone using the Xcode platform
and in our case using Swift 4 programming language. We developed an iPhone food
app called the munchies. “The munchies” is a food app that shows, describe and
3
provide the recipes for some popular Nigerian dishes. The App lists out the menu, the
recipes and the steps it to make the chosen food.
Importance of The Munchies App
What is more important than food??? “The munchies” app is a food app that has a list of
foods and the recipes needed to make the food. This is an app with a list of easy and
fast to make foods that can be done in less than 45minutes. These types of foods are
nutritious, filling and time saving (efficient) which we all need as we are almost always
busy and don’t have enough time to cook for ourselves. Using this app can also help
save money as we can use it to cook at home instead of eating out. “Eating at least two
nights a week saves you an average of $26 per week” (Acorns.com, 2018).
The app also provides a convenient mobile platform to view the recipes, rather than
having to open a laptop or a desktop.
What we did
For this project, we used Swift 4 programming language on Xcode platform. We built an
iPhone food app called “The Munchies”. First we created the first view that is the view
controller and the Xcode file for the view controller. We made the “Welcome to The
Munchies” label and the “Login ID” and “Password labels”, which have an action button
labeled “Sign In”. We then created the navigation controller so that we can navigate the
app to multiple views when an action is taken. The “Decision” view controller was
4
created after the navigation controller. This is the view that will be displayed after an
end-user authenticates to the app. The “Decision” viewer has eight recipe buttons with
the image of the food above it. Clicking on the recipe button will take the user to the
other Decision views, which will be displayed according to the name of food selected.
How the Munchies App works
The app has multiple views. The first view requires a login ID and a password for
authentication. Upon authentication, the user is taken to the second view which is a list
of food with the corresponding image. A user can click on the button below the food that
has the name of the food in the image directly above it. Clicking on the button will take
you to another view that has the recipe and steps to make the food the end user has
chosen.
List of Food
Scotch Eggs
Jollof Rice
Chin Chin
Bean Cake (Akara)
Bean Porridge
Okra Soup
Bean Pudding (Moi Moi)
5
Peppered Chicken
For this project, we will discuss just the first four recipes.
1. Scotch Eggs
Ingredients
6 medium sized eggs
3 links of sausages
A cup of bread crumps
A cup of flour
Vegetable oil for deep frying
How to make Scotch Eggs
Boil 4 eggs till fully hard, when done put the boiled eggs in cold water, peel the
eggs when cold.
Unwrap the sausages from the casings, using a flat surface, wrap the eggs
completely with the sausages. One egg at a time.
Beat the remaining 2 eggs and keep aside as a deep for frying.
Coat the sausage covered eggs with bread crumbs, then deep them in the egg
deep.
Coat them in flour. Then fry in a deep fryer at 180 degrees Fahrenheit for 3-4
minutes till golden brown.
Serve as an appetizer, snack or entree
2. Jollof Rice
Ingredients
2 cups of Rice
6
1 medium sized tomato
1 medium sized bell pepper
1 medium sized onions
½ a cup of vegetable oil
1 kg of beef
1 kg of Chicken breast
4 cups of water
Seasoning and salt to taste
How to make Jollof Rice
Blend the tomato, bell pepper and onions together.
Pour the paste in a pot and add 4 cups of water. The put it on the stove using medium
heat. Wash the beef and chicken and add them to the pot on fire.
Add salt and seasoning. Cook till meat is soft.
Add rice. Cook till rice is soft and fully cooked.
Serve as a side dish or entrée
3. Chin Chin
Ingredients
455 Grams All Purpose Flour (3-1/2 Cups). (1/2 Cup Extra for Kneading and
Rolling)
134 Grams Granulated White Sugar (2/3 Cup)
1/2 Teaspoon Salt
7
1/2 Teaspoon Baking Powder
2 Large Eggs
113 Grams Cold Margarine (1/2 Cup)
1/2 Cup Milk (118 ml) (See Note 1)
1/2 Teaspoon Grated Nutmeg
Oil For deep-frying
How to make Chin Chin
Mix the dry ingredients together in a big bowl.
Add wet ingredients slowly.
Add water till all ingredients dissolve into a dough. Knead and cut into cubes
Deep fry for 5 minutes, till golden brown.
Serve as a snack, appetizer or desert
4. Beans Cake
Ingredients
• 1 cup of Beans (black-eyed or brown beans)
• 2 habanero peppers (also chili peppers)
• 1 medium onion
• Salt to taste
Vegetable Oil for deep-frying
How to make Bean Cake (Akara)
Soak the black-eyed peas in warm water to re-hydrate if not fresh.
8
Ground it with the onion and habanero peppers in a blender till paste is smooth.
Add salt to the paste for taste.
Using a spoon, scoop it into the vegetable oil for deep frying at 180 degrees
Fahrenheit till golden brown on both sides.
Serve as appetizer, entrée or desert
Fig 1. A screen shot of the first view i.e. the view controller.
9
Fig 2. A screen shot of the navigation controller and view controller. This is the view of
the iPhone app where the end user authenticates to The Munchies app.
Fig 3. A screen shot of the navigation controller, view controller i.e. the first view and
decision controller i.e. the second view
10
Fig 4. A screen shot of the decision controller file created using Cocoa touch class.
Fig 5. A screen shot of decision controller code file created
11
Fig 5. A screen shot of all the views of in the app.
Fig 6. A screen shot of the recipe scotch eggs, which, is displayed when the button
labeled, scotch eggs under the Scotch eggs image is clicked.
12
Fig 7. A screen shot of the recipe Chin Chin. This view will be displayed when the
button labeled Chin Chin under the image chin chin is clicked
Fig 8. A screen shot of the recipe Bean Cake (Akara).
13
Fig 9. A screen shot of the storyboard of the app showing the view controller, the
decision controller, the decision controlller1, decision controller2, decision controller3
and the decision controller4.
14
Fig 10. This is the first view of the
Munchies app. This view is displayed
when the Munchies app icon is selected.
Fig 11. This is the second view of the
Munchies app, which, is displayed after
authenticating to the app.
15
Fig 12. This is third view of the
Munchies app. This view is displayed
when the recipe button Chin Chin is
clicked.
Fig 13. This is the fourth view of the
Munchies app. This view is displayed
when the recipe button scotch eggs is
clicked.
16
Fig 14. This is the fifth view. This view is
displayed when the recipe button Bean
Cake (Akara) is clicked.
Fig 15. This is the sixth view. This view
is displayed when the recipe button jollof
rice under the jollof rice image is clicked.
17
Fig 16. View Controller Swift Code: This ensure the end user authenticate successfully to the app.
Fig 17. Decision View Controller: Swift Code that sets the parameters for the
credentials.
18
Fig 18. The Munchies app on an iPhone
Summary
The Munchies app is a very efficient app. It saves time and money. The time it takes for
the user to make the food in the app is less than the wait in most restaurants and
delivery services. The foods are healthy and very filling. Most of the foods are rich in
protein and healthy vegetable oils and fast to make. This is a very simple app, as it did
not need a lot of coding to develop. Most importantly the Munchies app is very easy to
use.
19
Bibliography
Apple Inc. (n.d.). What's New in Xcode 9. Retrieved May 02, 2018, from
https://developer.apple.com/xcode/
Swift 4 Enters Final Stage, Defers ABI Stability. (n.d.). Retrieved May 02, 2018,
from https://www.infoq.com/news/2017/02/swift-4-release-process/
Yoon, J., Dr. (2018, March). IASP555_App development. Retrieved May 02,
2018, from http://www.cysecure.org/
Acorns grow trees. (n.d.). Retrieved May 02, 2018, from
https://www.acorns.com/
http://www.gratednutmeg.com/?p=13682
https://www.naijachef.com/recipe/fried-bean-cake-akara/
https://www.bettycrocker.com/recipes/baked-scotch-eggs/f0e01f73-fb39-478b-
9a2c-f242359d24af
20