Lập trình ứng dụng cho iPhone part 21 - Pdf 72

423
appendix A:
iPhone OS class reference
After this book, your main resource for learning more about the iPhone should be the
references at developer.apple.com. To help you find documents that might interest
you, this appendix lists the major classes in the
UIK
it and Foundation hierarchies that
you might want to know more about, excluding classes that only appear as a part of
another class.
A.1 UIKit framework classes
The
UIK
it framework contains those classes most tightly connected to the iPhone,
including all of the graphical classes you use to make up pages. A partial listing
appears as table A.1. It’s current as of iPhone
OS
2.1, and will probably be mostly cor-
rect when you read this, but the
UIK
it does sometimes change between releases.
Table A.1 A listing of the most important User Interface classes
Class Parent Summary
UIActionSheet UIView
A pop-up window that includes
options; similar to a
UIAlertView
UIActivityIndicatorView UIView
An indeterminate progress display
UIAlertView UIView
A pop-up window that includes

A modal controller for image
selection
UIImageView UIView
An image display that holds one
or more
UIImage
objects
UILabel UIView
A small, non-editable text display
UINavigationController UIViewController
A hierarchical controller; often
linked with a
UITableView-
Controller
to produce
hierarchical menus
UIPageControl UIControl
A toolbar for navigating among
pages using dots
UIPickerView UIView
A wheel-based selection mecha-
nism
UIProgressView UIView
A determinate progress display
UIResponder NSObject
An abstract class that defines all
classes that can receive and
respond to events
UIScreen NSObject
A class containing an iPhone’s

A controller for moving among
multiple screens
UITableViewController UIViewController
A controller for displaying tables
of content; often linked with a
UINavigationController
UITextField UIControl
A control for inputting short text
UITextView UIScrollView
A display for text of any size
UITouch NSObject
An individual touch on the
iPhone’s screen
UIView UIResponder
The abstract class that lies at the
core of most
UIKit
objects
UIViewController UIResponder
A simple view controller
UIWebView UIView
A Safari-like web browser
UIWindow UIView
The root for the view hierarchy
Table A.2 A listing of the most important Foundation classes
Class Parent Summary
NSArray NSObject
An array
NSAutoreleasePool NSObject
A memory-management class

the Media Player framework (chapter 18), the Core Graphics framework (chapters 18
and 19), the Quartz Core framework (chapter 19), the Open
GL

ES
framework (chap-
ter 19), and the
CFN
etwork framework (chapter 20). Finally, you may wish to pay some
attention to the Core Foundation framework, which we’ve used (as infrequently as
possible) throughout part 4 of this book.
NSFileHandler NSObject
A methodology for controlling files
NSFileManager NSObject
A manager for file system work
NSIndexPath NSObject
A node path
NSLog NSObject
A very important object for debugging; logs a
formatted string to the system log
NSMutableArray NSArray
An array that can be changed
NSMutableCharacterSet NSCharacterSet
A character set that can be changed
NSMutableData NSData
Data that can be changed
NSMutableDictionary NSDictionary
A dictionary that can be changed
NSMutableSet NSSet
A set that can be changed

B.2 Web app resources
Site URL Summary
The Apple Blog http://theappleblog.com General Apple blog, including some iPhone
discussion
iPhone Atlas http://www.iphoneatlas.com iPhone news blog
iPhone Dev Forums http://www.iphonedevforums.com Forums for SDK or web discussion
iPhone in Action http://iphoneinaction.manning.com/ The authors’ blog for this book; we’ll keep
you up to date with new links of interest
and occasionally cover some of the topics
that we didn’t cover in this book
iPhone in Action on
Magnolia
http://ma.gnolia.com/people/
iPhoneInAction/
The authors’ listing of links of note
Site URL Summary
Apple Developer
Connection
http://developer.apple.com/
webapps/
The official Apple site for developer resources;
requires ADC login
iPhoneWebDev http://www.iphonewebdev.com/ The authors’ own site, complete with examples
and webdev discussion list
WebKit Open
Source Project
http://webkit.org WebKit home, including the Surfin’ Safari blog


Nhờ tải bản gốc
Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status