We will be undergoing scheduled maintenance on May 20th, 2013 at 02:00 GMT.
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Now let's look at the reverse of what I've been doing before. We're going to create the binding in the Bindings Inspector rather than from the feed directly and what I'm going to do is I've gone to the back, the detailed level of the app and you can see here I already have the title, the location and poster and a description here and there's some space down here and I'm going to add another field and add data to it and the field I'm going to add is going to be a text field and I'll use, I have two text fields here. I have a text field, which is a simple, small section and the text area, which is just like a text area on a web page. It has rows and columns, it has more space and it has a little more editing available to it and notice that I have my guides here so that I can align things properly. So I've got my text area here and what I'm going to do is bind something from the feed to it and what I usually do is when I'm working in app, whether it's just a raw template or an app that I've been working with, I click on another field nearby that's picking up data from the same dataSource just to see what I've got. That gives me a template for the new field so here in the new field I want to bind to list and I have my two data sources down here; the original dataSource and the list the dataSource will contain, all of the items and then a single selection, the one on the back here is shown in the list. So I want to go to the list and I have to select the key path which tells me exactly what data element I want and here I have four choices as you can see and the first one is selection and that is the first level of the data that I wanted and from the selection you can see there are now more items here. I can go to info and you'll see there are even more items here and I'm going to pick release data. And that's what I want to put here. I've selected this field so you will see there is a binding here now and I'm going to the description. I could have done it the other way around. I could look in the list, drag this up and you can see here that what I'm looking at here is, as I move things around in the list, I'm going to the selection and look up here. You'll see the same thing; info and the description is down here. I have the same result as if I had dragged from the binding control to that field. I didn't do that. This was created here. I'm going to remove this and you can watch what happens as I repeat this. There's no binding here yet and I want to bind it to the release date and when I click out of it, you can see that I'm coming down here and I've got the release date here in this field and it is right here. It's in the text area value. So I can do it either way. I can drag from here or I can select it here and it'll be reflected here. Let's take a look in the simulator and see what I've got. And it's going out, getting a list of all of the trailers, go to Alice in Wonderland and that'll pick up. I have the title, I have the poster and I have the release date here. The description field isn't being picked up because I'd modified its source so there's nothing to be picked up there. But I've got this. This is the release date that I just entered. I did it from the Bindings Inspector and I could have done it from down here. So you've now seen both sides of how to bind data to a specific field.
| Course: | Developing iPhone Web Apps |
| Author: | Jesse Feiler |
| SKU: | 34075 |
| ISBN: | 1-935320-89-0 |
| Release Date: | 2009-12-31 |
| Duration: | 8 hrs / 103 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |