Prework

Complete Try Git Course

Learn how to use Git by reviewing the basic concepts of Git version control. Try out this introductory course that was created with GitHub.

Codeschool Link

Hardware & Software

Below is a list of tasks for you to do today.

Your Laptop

Other than your brain, the most important tool you will use is your macbook. Making sure it is properly set up is extremely important. This is the reason we do this install party. Here are some things you'll need to make sure you have.

  • Macbook Air or Pro running the latest OS X

  • Clean up your machine. Those of you who have not started with a new machine, take some time to clean up your desktop and even your file system if possible.

  • Make sure you always have your charging cable with you

Install Xcode 7

You will be living in Xcode 7 for 12 straight weeks. Xcode is much more than a text editor, and you will need to do more than just write code within it. You will need to get comfortable with navigating this IDE. Go ahead and sign up as an Individual for the Apple Developer program.

Apps to Install

Counter App

Download Link

For your first true iOS homework assignment at The Iron Yard, you will be building a simple counter app. It is capable of counting between 1 - 100. Simply follow the steps below and in the comments of the code and you'll have a fresh app ready to count in no time!

Be sure to have Xcode installed on your Mac before you try to open this project. To open the project, look in the project folder, called Counter, and click on the file called Counter.xcodeproj. Xcode will open and load the project. Once open, click on Main.storyboard. See the storyboard tasks below for the steps you need to complete. Then proceed to the code steps.

NOTE: this project as it is will not build and run in the iOS simulator. The reason is because there are several items missing from the code, and Xcode will not allow incomplete code to be built. You may notice a red icon at the top of the Xcode window with a number of errors listed. You will need to fix these errors before you can test the app, but if you follow the steps below, all the errors should disappear as you work through the checklist.

Everything in our storyboard view is now properly wired up to the appropriate variables/methods in our code! When UI elements are touched by our user, the code in our view controller will be invoked.

Code Tasks

The following steps are numbered. You will find corresponding comments in the CounterViewController.swift file with the same numbers.

  • 1. Here you are calling a method. A method is a collection of instructions that are executed together. Anything listed in CounterViewController with the keyword func in front of it is a method . Read the comment and try to figure out which method we should call here (the method exists somewhere in the file).
  • 2. What variable from the top of the class should we use to update the textfield?
  • 3. What value should the slider show?
  • 4. And the stepper (detecting a pattern here)?
  • 5. What property of sender should we use (Big hint in the comment for this one)?
  • 6. What method should we call here?
  • 7. This looks suspiciously similar. What goes in these blanks?
  • 8. After we hide the keyboard and update the currentCount variable, what should we do?

###Tasks To Do

  • We will discuss the following task list:
* [ ] [Create a Github account](https://github.com/signup)
* [ ] Find and star [the class project](https://github.com/TIY-Mobile-Winter-2016/TIY-Course)
* [ ] Read [the Home page on the class](https://github.com/TIY-Mobile-Winter-2016/TIY-Course)
* [ ] [Create a new _WIP Issue_](https://github.com/TIY-Mobile-Winter-2016/issues/new)
* [ ] Named `00 -- This is Heavy -- YOUR NAME` (where `YOUR NAME` is _your_ name)
* [ ] With this checklist as the description
* [ ] [Edit your Github profile](https://github.com/settings/profile) to provide:
* [ ] A picture, so I can recognize your face.
* [ ] Your full name, so I can recognize your name.
* [ ] A valid public email address, so I can contact you if I need to.
* [ ] [Complete the "Hello World" Github guide](https://guides.github.com/activities/hello-world/)
* [ ] Add a link to your new Github repo as a comment on your *WIP Issue*
* [ ] Complete the Code School course [Try Git](https://www.codeschool.com/courses/try-git)
* [ ] Take a screenshot of the Try Git course when you complete it and add it as a comment to your *WIP Issue*
* [ ] Create a new repository called `TIY-Assignments`
* [ ] Check the box to create an initial `README.md` file
* [ ] Select the `CC0` -- "Creative Commons" license for your work
* [ ] Add a link to your `TIY-Assignments` repo as a comment on your *WIP Issue*

Other Activities

Please do

* [ ] Watch _The Long Run_ Videos on [Delve.tv](http://delve.tv)
* [ ] [_The Long Game_, part 1](http://delve.tv/the-long-game-part-one/)
* [ ] [_The Long Game_, part 2](http://delve.tv/the-long-game-part-2/)
* [ ] Check out the Swift Programming Language guide. Pay special attention to the first section [*Welcome To Swift*](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html).
* [ ] From the Guided Tour section, read the paragraphs labelled, *Simple Values* and *Control Flow*.
* [ ] Feel free to read the first few items under the section called, *The Basics*. This is in the *Language Guide* chapter.