When working with multiple views, a common task is to send data between the views. In this movie, you'll see the basics of sending data from one view to another in the prepareForSegue method using data from the view controller that is about to be loaded in. Using these techniques can help you build more complex apps.
- [Voiceover] So let's say you've created transitions…between objects and you want some way…to send data from one view controller to another.…So on the screen here on page one,…I have three buttons, and if you click on these segues,…you're going to see that these buttons…are connected to the page two of your controller.…However, there are three buttons…that are connected to the same view controller,…and what we wanna do is detect which button…triggered the segue and display that information…in the second view controller.…
So, with the segue selected, so I have the segue…selected right here, I'm going to head over…to the attributes inspector,…and I'm going to set identifiers for these three segues.…We'll call these options A, B, and C.…So this'll be option C.…I'll click on this other segue,…and this is going to be option A.…And then the third segue's going to be option B.…I know what I should type in the identifier field…because when I select the segue,…I can see the button that's highlighted there.…
And of course, just because the button says option A…
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
Building a Note-Taking App for iOS 9 with Swiftwith Todd Perkins1h 20m Intermediate
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?
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.