Join Todd Perkins for an in-depth discussion in this video Challenge: Methods, part of Programming for Non-Programmers: iOS 10 and Swift.
- [Instructor] As we close out our discussion on methods…I want to present you with a challenge.…Now before we go into the challenge,…I want to review what methods are.…Remember that they are the verbs…or the actions of programming.…Some synonyms are actions, functions, and selectors.…Some synonyms are actions, functions, and selectors.…These methods are named sections that are logically grouped.…We use methods to reduce verbosity and redundancy in code…and the definition of a method is separate…from the execution of the method.…
Here's an example of a method.…You define the tieShoes method.…The code that's inside of the curly braces…The code that's inside of the curly braces…is what happens when the method is called or executed.…And then we execute it by calling self a dot…and then tieShoes with parantheses.…Remember that self and the dot are often optional.…Remember that self and the dot are often optional.…For what we're doing in this course,…they are actually always going to be optional.…Remember that methods have rules just like variables.…
- 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.