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,…
Author
Released
12/7/2016- 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
Duration
Views
Related Courses
-
Introduction
-
Welcome1m 9s
-
The finished app59s
-
-
1. Set Up Your Coding Environment
-
Create an Xcode project4m 19s
-
2. Programming Building Blocks: Variables
-
Understanding variables3m 2s
-
Using instance variables7m 40s
-
Enum values4m 29s
-
3. Programming Building Blocks: Methods
-
Understanding methods3m 53s
-
Using methods5m 7s
-
Connect a button to a method5m 48s
-
Challenge: Methods1m 39s
-
Solution: Methods7m 8s
-
-
4. Programming Building Blocks: Conditional Statements
-
Using conditional statements6m 37s
-
Boolean values4m 32s
-
Optionals5m 23s
-
Guard statements5m 38s
-
5. Plan and Prepare the App
-
Customize UI objects6m 59s
-
Place UI objects with pins7m 12s
-
Set up the user interface3m 28s
-
Finish the user interface4m 25s
-
6. Build a Full Application
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Understanding methods