Labels and other user interface objects like text fields and be modified and read through code. In this movie, see how to create the connection from a user interface Label to your code, and learn the difference between Action and Outlet connections in Xcode 7. Also learn what properties can be accessed through code.
- [Voiceover] Now in continuing our conversation…about a button tap or a click,…and having something happen when you do that,…let's look at modifying a label…when you tap or click the button.…So I'm going to return to the standard editor,…and what I wanna do is create a label on the screen.…We'll go to the utility area,…and then I'm going to search for a label.…Drag and drop Label on the screen.…Going to extend it a little bit.…
Clear the text in it,…so I'm going to select it and just delete it.…So I double clicked where it said Label,…pressed the Delete key on my keyboard…to delete the text, and then I pressed Return.…So you should see this selection area right here.…So there still is a label,…it just doesn't have any text inside of it.…Now we talked previously about connecting an event,…like a button click, to our code.…But what if we wanted to communicate…from our code to our view?…And we do that with outlets instead of action.…
Remember, an action is an event,…something that happens.…It's called an action for a reason.…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.