Sometimes it can be hard to visualize where certain code elements are used. This video shows an example application that uses several methods, and explains their roles in the app.
- [Instructor] Here's the calculator app…that we're going to build in the course, yet again.…The reason why I'm showing you this code…is so that you can see how methods work…in the bigger scheme of things.…So what I'm going to do is scroll down a little bit,…and find some custom methods.…This method right here didPressNumber…is connected to objects inside of the storyboard.…So if we go to the assistant editor,…we get Main.storyboard on the left,…and we get the code on the right,…you can actually hover over this dot…and to see that all of the numeric buttons are highlighted.…
So you can actually connect…multiple buttons to the same method.…If you're wondering how to do that right now,…we are going to be doing it later in the course,…but you can actually left click and drag…from the circle to connect that method to multiple buttons.…Just release my mouse out here in the line numbers…so the connection isn't made.…So here's this method and it does this code…any time any of these numeric buttons are pressed.…So instead of having to write this code…
- 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.