Join Todd Perkins for an in-depth discussion in this video Connecting visual objects to variables, part of Programming for Non-Programmers with iOS 7.
…Now that we've discussed variables in detail,…let's look at connecting variables to visual elements.…In this example, we're going to update a text label through our code.…So, go to MainStoryboard.storyboard by single-clicking…the file in the Project Navigator.…A storyboard is a way to lay out our app visually, so we can click and drag…in buttons and text fields and other visual elements…to lay out our application before writing the code.…
Now I'm going to be working in the Utilities…view, which is on the right side of the screen.…So make sure that view is showing by…clicking the appropriate button at the top right.…I want to find a label to drag on the screen now.…The label is in the Objects section at the bottom right of the screen.…So click the button that looks like a cube to show the Object library.…Now I'm going to expand this area by hovering my…mouse in the dividing light until my mouse icon changes.…And I'm going to click and drag up a little bit.…And now I'm going to scroll down in the Object library till I find Label.…
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 function
- Using conditional statements
- Setting up the user interface
- Connecting code elements to build an app