iPhone开发 读书笔记1

1、iPhone app的分类:
native iPhone applicatio 和 web iPhone applicatio
native包括:
■ Productivity style  普通的程序,有导航,tab等
■ Utility style       简单小程序,例如天体预报等
■ Immersive style     仿真的程序


2、应用程序的安全保障:
sandboxed 沙箱


3、Memory Management:
If you want to allocate plain blocks of memory—that is, memory not associated with an object—you
can do so using the standard Malloc library of calls. As is the case with any memory you allocate
using malloc, you are responsible for releasing that memory when you are done with it by calling
the free function. The system does not release Malloc-based blocks for you.


Although iPhone OS has a virtual memory system, it does not use a swap file.


4、Application Structure:
The structure of iPhone applications is based on the Model-View-Controller (MVC) design pattern
because it benefits object-oriented programs in several ways.


5、The Multi-Touch Interface:


6、Windows and Drawing
iPhone applications use high-quality graphics, instead of large amounts of text, to create a more
pleasant user experience.

The Full-ScreenWindow
Because only one application is visible at a time, every iPhone application is a full-screen application.
When you want to present a new screen of information, you use views, not
windows, to slide that new information into place.

■ Does your application display the device’s status bar?
With the exception of immersive applications, most applications display a status bar. The presence
of the status bar affects how you lay out the contents of your window. You can configure the status
bar to be either totally opaque or partially transparent.
■ Which window orientations does your application support?


7、Key Integration Features
Accelerometers 
Both iPhone and iPod touch have 3 accelerometers to measure changes along each of the primary axes in
three-dimensional space, which allows you to detect motion in any direction.

Core Location
The Core Location framework monitors signals coming from cell phone towers and Wi-Fi hotspots
and uses them to triangulate the user’s current position.

Contacts
iPhone OS provides both direct access to the user’s contacts and indirect access through a set of
standard picker interfaces.

The Camera and Photo Library
Through the camera and photo library support in UIKit, you can incorporate system-provided picker
interfaces into your application.
These interfaces provide standard system views for selecting a photo
from the user’s photo library or taking a picture using the camera.

 


8、Safari on iPhone uses the same WebKit engine as Safari on the desktop. It supports all the latest modern web
standards, including:
■ HTML 4.01
■ XHTML 1.0
■ CSS 2.1 and partial CSS3
■ ECMAScript 3 (JavaScript)
■ DOM Level 2
■ AJAX technologies, including XMLHTTPRequest


9、Dashcode
■ Dashboard widgets—simple, lightweight applications that perform a single task in the Dashboard
environment. Widgets are actually packaged webpages powered by standard web technologies such
as Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript.
■ Web applications—webpages optimized for Safari on iPhone that provide discrete functionality to users.
Web applications also make use of web technologies such as HTML, CSS, and JavaScript.

posted @ 2009-05-30 21:10  猫咪  阅读(534)  评论(0编辑  收藏  举报