Join Todd Perkins for an in-depth discussion in this video Connecting visual objects to variables, part of Programming for Non-Programmers with iOS 8.
- Most apps that you create…will have some form of visual interface.…To build an interface, we need some kind of way…to connect visual elements to our code.…So, let's look at how that works…by connecting text labels…to variables in our code.…I'm going to go in the project navigator…and single click on Main.storyboard.…And then I can see the visual layout of my app.…Now, if you look in this section,…the shape of this box in the center…that says View Controller on the top,…doesn't quite look like an iPhone.…
So, to change the aspect ratios,…I can click at the bottom of the editor,…where is says wAny hAny, which refers to the…width and the height of your application.…And then I'm going to click one above…the bottom left corner.…So, it should say Base Values.…This is for iPhones and iPod Touches.…So, I'm clicking in here, and I've changed the size…of my presentation.…This way, our layout on our screen…will be more similar to the layout…in the iOS simulator when we run the application.…
So, now what I want on the screen is a text field.…
If you find you'd like to learn more, see iOS App Development Essential Training, Foundations of Programming: Fundamentals, or any of the other programming courses in our library.
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding functions, methods, and selectors
- Connecting a button to a method
- Using conditional statements
- Setting up the user interface
- Connecting code elements to build an app
Skill Level Beginner
1. Setting Up Your Coding Environment
Creating an Xcode project3m 38s
2. Programming Building Blocks: Variables
3. Programming Building Blocks: Functions
4. Programming Building Blocks: Conditional Statements
Using conditional statements4m 11s
5. Building Your First Full Application
- 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.