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.
Let's take a look at how this app stores data and then we'll get into exactly what's going on inside. When I run the app in the Simulator, there's the Simulator, when I'm running it, it loads. I can flip around. I can tap here to enter a new message. I can come back. I'm backspacing to remove this text. I can type in something new. I'm done with the typing, I can flip around. I could change the color. I could change the font. Done here, done at the back of this, and I'm all done. I can now quit out of here, go to some other app. You can stop it running. I start it running now and as I start it, it's picking up the new text and it's picking up the color that I set. I'll show you again. Now, it's blue. I'm done with it. I'll launch it again. What I'm seeing here is this, remember this is the canvas. Now, if I launch it in the Simulator, I've got the text in blue. So it has saved and preserved the settings, the font, the color and the text that I've used and you can prove that you can install it right away on an iPhone and to prove that the settings remain there, I could restart the computer here so that the Simulator is restarted. You will see it is storing the data itself and the way in which it is storing the data is by using client-side storage that is now implemented as part of HTML 5 and supported in the WebKit that is used on iPhone and what we're going to do is take a look at how you access that code. It uses the built-in SQLite Database that is built into the operating system in IPhone and it's also part of the Mac OS X operating system so we've got a database there. It's a personal database. It is on the iPhone. It is not network. You can build an app that will share data through the app with another app or with another database somewhere out there on the web, but the database itself is a personal database. It's confined to the limits of the iPhone. It is not designed to be shareable unless an app that uses it is shareable and in that case, although data from the database might be shared, it is the app that is doing the sharing. So this is not a full-featured database in the sense that something like FileMaker is fully featured where you can set it up with a number of clients, hundreds of clients No. This is an app designed totally within the iPhone using SQLite and the new technology. Just as a sideline, a number of people including people at Apple unofficially, in personal conversations over the years, have said that they thought one of the biggest mistakes in the development of the personal computer was developing the file system so that you could write data out to files but not incorporating a more structured database as part of personal computers. And now, we're finally getting around to that. Whether you agree with it or not as something that should have been there from the start, it's now here on the iPhone. So let's take a look at how we deal with the database.
| 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 |