Wiley Professional iPhone & iPod touch Programming: Building Applications for Mobile Safari 978-0-470-25155-3 Benutzerhandbuch
Produktcode
978-0-470-25155-3
Chapter 1: The iPhone and iPod touch Development Platform
10
Table 1-3: Resource Constraints
Resource
Limitation
Downloaded text resource (HTML, CSS,
JavaScript files)
JavaScript files)
10MB
JPEG images
128MB (all JPEG images over 2MB are
subsampled—decoding the image to
16x fewer pixels)
subsampled—decoding the image to
16x fewer pixels)
PNG, GIF, and TIFF images
8MB (in other words,
width*height*4<8MB
)
Animated GIFs
Less than 2MB ensures that frame rate is
maintained (over 2MB, only first frame
is displayed)
maintained (over 2MB, only first frame
is displayed)
Non-streamed media files
10MB
PDF, Word, Excel documents
30MB and up (very slow)
JavaScript stack and object allocation
10MB
JavaScript execution limit
5 seconds for each top-level entry point
(
(
catch
is called after 5 seconds in a
try/catch
block)
Open pages in Mobile Safari
8 pages
Table 1-4: Technologies not Supported by iPhone and iPod touch
Area
Technologies not supported
Web technologies
Flash media, Java applets, SOAP, XSLT, SVG, and Plug-in
installation
installation
Mobile technologies
WML
File access
Local file system access
Text interaction
Text selection, Cut/Copy/Paste
Embedded video
In-place video (tapping an embedded element will put
iPhone/iPod touch into video playback mode)
iPhone/iPod touch into video playback mode)
Security
Diffie-Hellman protocol, DSA keys, self-signed certificates,
and custom x.509 certificates
and custom x.509 certificates
JavaScript events
Several mouse-related events (see Chapter 5)
JavaScript commands
showModalDialog()
,
print()
Bookmark icons
.ico
files
HTML
input type=”file”
, tool tips
CSS
Hover styles,
position:fixed
c01.indd 10
c01.indd 10
12/7/07 2:29:10 PM
12/7/07 2:29:10 PM