Methods are the second building block of code. This tutorial explains what methods are, why they're used, and the purpose they serve in iOS app development.
- [Instructor] Methods are the next building block…I want to talk about when it comes to programming.…So, what are methods?…If variables are the nouns of programming,…methods are the verbs or the actions.…In fact, in Swift development,…methods are often called actions as well as methods,…or selectors.…There are several different names that are synonymous.…So, methods, actions, selectors.…And what methods are…are named blocks of code that are logically grouped.…
Think of something like tying your shoes.…We have a named action called tying your shoes,…and it's actually a sequence of actions…where we grab shoe laces…and twist them around in a certain way,…tie them in a knot, and tighten that knot.…So, instead of saying each of those commands one by one…when we're referring to tying our shoes,…we just say, I'm going to tie my shoes,…and we understand that there is a process to that.…Coding works in the same way.…And, just like in language,…methods can reduce verbosity and redundancy in your code.…
And like any real world action,…
- 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.