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 I'm going to run this in the simulator and as I run it, you're going to notice that it will not work. And the reason I've left this error in there is to show you the sort of thing that you should look for as you're building your own iPhone web apps. There are certain pitfalls that happen occasionally, sometimes not so occasionally and this is one of them. So I'm going to run it in the simulator and I'll try the northeastRegion and that seems to work very nicely. Now I don't have the Back Button and I don't have the details here yet, but I go from the list of regions to a specific region and now I have the individual parks within that region. So I'll stop that and go back and try the other case which is the intermountainRegion. I've got Inter Mountain Region, and I click here and it doesn't work. I'm not going to the specific region I want to go to. This one works and this one doesn't and the reason is that originally when I set this up, I misspelled this. That's what I had in there. Now if I come back in here and I can stop this, if I come back in and look at this and put that I back in and save it so that it matches what's in the data source, or I can look in the dataSource itself, it's intermountain, A-I-N. I've changed the spelling here and this the way in which you can track down what some of the problems are. For example, does it not work at all? Or does one work and not the other one? In that case, what you're usually looking at is a typo or a misspelling. So I'm going to save this now and try it again. I'm ready to try to run it and I'm going to run it even though I know that there's a typo here, because I want to show you the type of thing that you are likely to encounter that you should know how to diagnose and how to track down what these issues are when you're connecting things with the graphical user interface drawing from here up to something in the interface. That's the easy part. But there are cases where you are typically in code and that's where you have to be careful. So let me run this in the simulator and I'll go back and check and see that the Northeast still works. Yes, I can go to the parks there, and the Back Button is not working yet. So I just am going to make certain that I go from the list of regions down to a specific region so that I can see the parks within that region. Now the other region that I populated was the Inter Mountain Region, so if I click here, I'm going up here to the top, but I'm not seeing that list. So there's something wrong here. Northeast works and intermountain doesn't. I'll stop this and here's how you track down these things. Northeast works, intermountain doesn't and if you look carefully here, you may be able to notice what the issue is. There's a misspelling here and if I add that I and I'm also going to check down here and see what's in the data file, because it's quite possible that they were misspelled in both cases. Here they weren't. So what I'm going to do is to save it and now try again and now I've got the list for the intermountain parks. So I can go from the region list to all of the parks in a specific region and then I'm ready to drill down further and get the details for each region. So for the number of regions that we have here, which are seven and the number of parks in this example, this is a reasonable way of doing it. It's really quite simple because you're doing the same thing over and over and over again. It's a reasonable way of working with this amount of data. But there are other ways of handling this issue.
| 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 |