Module Outline
Use the following resources and work with your mentor to master the objectives for this module. Practice by completing the Mini-Project, Project, and Challenges.
Lesson Video
Preclass Videos
-
iOS Cohort - Andrew Madsen
Objective-C Properties Deep Dive
-
iOS Cohort - Andrew Madsen
Objective-C Intro to Pointers
-
iOS Cohort - Andrew Madsen
nil in Objective-C
-
iOS Cohort - Andrew Madsen
Objective-C NSValue, NSNumber, and Literals
-
iOS8 Cohort - Andrew Madsen
.h vs .m Files (Brief Discussion)
Video Challenges
Stretch Problem
- Make a new Objective-C Project
- Write a method that prints the numbers from 1 to an inputed number. But for multiples of three print "Dev" instead of the number and for the multiples of five print "Mtn". For numbers which are multiples of both three and five print "DevMtn".
- Solution
Obj-C DevMtn
♦ Black Diamond
Make a function in Objective-C that takes one parameter as an integer and returns the closest number in the Fibonacci sequence below the parameter. Then do it again using recursion.
Project
-
Rover
Students will practice writing in Objective-C by building an app that allows a user to browse images provided by the NASA Mars Rover API. This app requires students to use concepts and APIs they already know, including MVC, table and collection views, custom model objects, property "observers", NSNotifications, NSURLSession, JSON parsing, etc.
ReadMe
Mastery Review
- Obj-C DevMtn stretch problem