The conclusion to the iOS simple app, this video demonstrates how to wire UI components to code, gather user input, process it, and display results.
- [Instructor] You've created the UI for the CircleCalc app…and you created the class for the data objects,…now it's time to work on the ViewController in the app.…The ViewController does exactly what you think it does.…It controls how the user interacts with the app.…Open the ViewController swift file in the editor.…The first thing to do, is to connect the UI with your code.…Connecting the UI is the process of connecting…the visual objects we created in a storyboard file…to the coding object in the ViewController.…Let's do that first by adding some instance variables.…
Since I'm going to be connecting these visually,…I'm going to make them all be Outlet variables.…The first one is for the text field,…so that's going to be of type UITextField.…The second one, make sure I spell Outlet correctly,…is for the button, I'm going to call that one btnCalc.…That's going to be an instance of a UIButton,…and then the last one is for the label,…so I'm going to call that lblResults.…
That's going to be an instance of a UILabel.…
- iOS platform architecture
- Generic smartphone app life cycle
- iOS app life cycle
- Object-oriented programming (OOP) and Swift
- Inheritance vs. delegation
- Getting started with Xcode
- Xcode vs. Android Studio
- Creating a simple Swift app
Skill Level Beginner
1. Platform Architectures
iOS platform architecture3m 12s
2. App Life Cycle
3. Programming Language
4. Development Tools
5. Build an App
- 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.