Variables can be created in a playground—a prototyping area for quickly typing out code and getting feedback on whether the code is working properly.
- [Instructor] There are actually multiple ways you can…get started in writing your code.…One of the easiest, and most clean ways…to write code, just to practice how programming works…is through something called a playground.…So I'm going to create one from the welcome screen here.…If you're already in Xcode and are not at the welcome screen…you can just go to File, New, and then choose Playground,…or use the shortcut Option + Shift + Command + N.…So create a new playground and I'm going to give this a name…I'll call this Variables,…and for platform I'm going to choose iOS.…
For what we're doing it doesn't make a huge difference.…I'll hit next and then I'm going to save this…in my Exercise files, Chapter 02, Playground, Final…and of course if you're following along…save it right in here outside of that final folder.…I'll hit create.…And I'm going to expand my screen a little bit…so that all we have here is the playground.…So, here, what we have is three…lines of codes spread out over six lines.…So we have line one,…
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding methods
- Connecting a button to a method
- Using conditional statements
- Setting up the user interface (UI)
- Building a complete iOS app
Skill Level Beginner
1. Set Up Your Coding Environment
Create an Xcode project4m 19s
2. Programming Building Blocks: Variables
3. Programming Building Blocks: Methods
4. Programming Building Blocks: Conditional Statements
5. Plan and Prepare the App
6. Build a Full Application
Next steps3m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.