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.
We've got it set up so that from the regionList, I can click here and I will go to a park item handler down here which is already built which is hard-coded that no matter what region I clicked on, I will go to a view for the Northeast region which is down here. What I need to do now is to create separate data sources and regions views for each of the regions in the list because there aren't that many regions in the list. This is a reasonable way of working. There are other ways of handling it and I'll talk about them later. So, what I need to do in the first case, the logically simplest case, is to create separate data sources and views for each region and before I go on and do that, what I want to do is come over here and do a little bit of cleanup here because, as I start to add new items and manage them, what I'm going to have to do is make certain that the names are reasonable. Now, here is the original dataSource. You can tell because it has these 14 national parks in it and I'm going to rename this. I'm not just gonna type here, I'm going to use down here and I'm going to, originalDataSource and press Return so it's renamed. Now, I have these lists down here. This is list1 which has 2 items on it. This is list, the original list which has the 14 on it so before I go any further, I'm going to rename it, originalList. Regionlist is empty at the moment as is the region dataSource. Northeast dataSource has 2 items in it. I'm looking over here. List1 has those same 2 items and I'm going to rename it northeastList and press Return. So, now, I have meaningful names, Dashcode has taken care of making certain that everything is organized behind the scenes so the links are still there. When it does that, the only thing you sometimes have to worry about is your handlers because Dashcode handles all of this stuff but over here, if I have hard-coded something like northeastRegion, then what I'm gonna have to do and this is northeastRegion over here, then I may have to reenter this text so that my code is not going to break, but I've got it set up and what I'm going to do is offline create data sources and views that are copies or clones of the northeastRegion view and dataSource with the specific elements that I will need for them and once I've created those, then we'll come back and rearrange them and set up some new handlers for managing the traffic.
| 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 |