Wiley Professional iPhone & iPod touch Programming: Building Applications for Mobile Safari 978-0-470-25155-3 Benutzerhandbuch

Produktcode
978-0-470-25155-3
Seite von 12
Chapter 1: The iPhone and iPod touch Development Platform
11
  Accessing F iles on a Local Wi - F i Networ k 
 Since iPhone and iPod touch do not allow you to access the local file system, you cannot place your 
application directly onto the device itself. As a result, you need to access your Web application through 
another computer. On a live application, you will obviously want to place your application on a publicly 
accessible Web server. However, testing is another matter. If you have a Wi - Fi network at your office or 
home, I recommend running a Web server on your main desktop computer to use as your test server 
during deployment. 
 If you are running Mac OS X, you already have Apache Web server installed on your system. To enable 
iPhone and iPod touch access, go to System Preferences     Sharing     Services and turn the Personal Web 
Sharing option on (see Figure  1 - 11 ). When this feature is enabled, the URL for the Web site is shown at 
the bottom of the window. You ’ ll use this base URL to access your Web files from iPhone or iPod touch.   
URL for selected
web site
Figure 1-11: Turn on Personal Web Sharing.
c01.indd   11
c01.indd   11
12/7/07   2:29:11 PM
12/7/07   2:29:11 PM