
iOS Documents
文章平均质量分 63
nerohoop
这个作者很懒,什么都没留下…
展开
-
Core Animation And Core Graphics
UIKitThe high-level framework that allows developers to create views and UI related components. It also incorporates some of the low-level APIs into an easier-to-use high-level API.Quartz原创 2012-02-28 14:48:42 · 840 阅读 · 0 评论 -
iOS开发之-Run Loop
Run LoopsA run loop is an event processing loop that you use to schedule work and coordinate the receipt of incoming events. The purpose of a run loop is to keep your thread busy when there is w翻译 2011-12-26 14:50:50 · 991 阅读 · 0 评论 -
iOS开发之-Dates and Times
Date Fundamentals1. Cocoa represents dates and times as NSDate objects (Combination of a clock time and a day on a particular calendar).2. In Cocoa, you use a particular calendar to decomp翻译 2011-12-26 18:40:27 · 624 阅读 · 0 评论 -
iOS开发之-Run Loop
Run LoopsA run loop is an event processing loop that you use to schedule work and coordinate the receipt of incoming events. The purpose of a run loop is to keep your thread busy when there is wor翻译 2011-12-26 14:21:05 · 105 阅读 · 0 评论 -
iOS开发之-Concurrency Programming Guide
Terminology The term thread is used to refer to a separate path of execution for code. The term process is used to refer to a running executable, which can encompass multiple threads.The term task翻译 2011-12-16 12:23:59 · 823 阅读 · 0 评论 -
iOS开发之-iPod library access
iPod library accessYour application has two ways to retrieve items. The media picker, shown on the left, is an easy-to-use, pre-packaged view controller that behaves like the built-in iPod applica翻译 2011-12-24 13:46:10 · 113 阅读 · 0 评论 -
iOS开发之-Grand Central Dispatch
Grand Central Dispatchdispatch_queue_t dispatch_queue_create (const char * label, dispatch_queue_attr_t attr); 这个函数返回一个objective-C对象引用(C语言中的一个结构体变量指针),并且是带引用计数的。不过该函数可以用于C/C++。第一个参数是指定所创建队列的一个标翻译 2011-12-15 17:31:07 · 3037 阅读 · 0 评论 -
iOS开发之-Camera and Photo Library
Camera and Photo LibraryiOS provides two technologies for taking pictures and movies.The UIImagePickerController class provides basic, customizable user interfaces for taking pictures an翻译 2011-12-24 11:15:47 · 3660 阅读 · 2 评论 -
iOS开发之-Text Editing
Text ViewsManaging Text Fields and Text ViewsThe Sequence of Messages to the DelegateJust before a text object becomes first responder—textFieldShouldBeginEditing: (text field) and翻译 2011-12-21 17:30:30 · 1457 阅读 · 0 评论 -
iOS开发之-Block
Getting Started with BlocksDeclaring and Using a BlockYou use the ^ operator to declare a block variable and to indicate the beginning of a block literal. The body of the block itself is con翻译 2011-12-14 16:18:29 · 1656 阅读 · 0 评论 -
iOS开发之-Core Data-Managed Object Models
Managed Object ModelsFeatures of a Managed Object ModelEntities1. A model contains NSEntityDescription objects that represent the model's entities. Two important features of an entity翻译 2011-12-13 17:34:15 · 985 阅读 · 1 评论 -
iOS开发之-Timer
Alternatives to TimersIf you simply want to send a message at some point in the future, you can do so without using a timer. You can useperformSelector:withObject:afterDelay: and related methods翻译 2011-12-22 17:13:22 · 2633 阅读 · 0 评论 -
iOS开发之-Managing Keyboard
Keyboards and Input MethodsConfiguring the Keyboard for Text ObjectsYou configure the attributes of the keyboard directly through the text objects of your application. TheUITextField and翻译 2011-12-21 22:42:34 · 1884 阅读 · 0 评论 -
iOS开发之-Core Data
Core Data BasicsBasic Core Data ArchitectureThe managed object context serves as your gateway to an underlying collection of framework objects—collectively known as the persistence stack翻译 2011-12-11 16:00:22 · 677 阅读 · 0 评论 -
iOS开发之-Map
Displaying MapsTo use the features of the Map Kit framework, you mustlink your application to MapKit.framework in your Xcode project. To access the classes and headers of the framework, incl翻译 2011-12-18 23:17:37 · 1470 阅读 · 0 评论 -
iOS开发之-Displaying Web Content
Listing 3-1 Loading a local PDF file into the web view- (void)viewDidLoad { [super viewDidLoad]; NSString *thePath = [[NSBundle mainBundle] pathForResource:@"iPhone_User_Guide" ofType:@"pd翻译 2011-12-28 15:41:27 · 360 阅读 · 0 评论 -
iPod Library Access Programming Guide 2 -- Media Playback
Using Media PlaybackTo play songs, you use a music player—an instance of theMPMusicPlayerController class. In a nutshell, the steps to perform are as follows:Register to receive music play翻译 2012-01-17 17:42:23 · 818 阅读 · 1 评论 -
iPod Library Access Programming Guide 3 -- Media Item Picker
Using the Media Item PickerThe media item picker is the pre-packaged view controller for letting a user choose media items from the device iPod library. Using the picker is very simple:Designa翻译 2012-01-17 17:51:46 · 383 阅读 · 0 评论 -
Your First iOS App的一些基础概念
1. 此函数创建了一个UIApplication的实例,同时扫描程序的Info.plist文件。该文件包括application对象需要载入的nib文件名称,和程序图标 int retVal = UIApplicationMain(argc, argv, nil, nil);2.当application对象设置完成后,给其代理发送application:didFinish原创 2012-02-19 15:20:39 · 534 阅读 · 0 评论 -
UIView的一些基础概念
Windows本身没有任何可见的内容,但是为views提供了一个基本的容器。Views定义了window的一部分矩形区域,用来填充需要显示的内容。views负责绘制内容,处理多点触摸事件,管理子视图的布局。大多数情况下,windows不会发生改变,当它被创建之后,只有windows显示的view会发生改变。View and Window 结构views和Core Animation原创 2012-02-19 10:50:28 · 1069 阅读 · 0 评论 -
SQLite3 Tutorial
http://www.iphonesdkarticles.com/2008/10/sqlite-tutorial-selecting-data.html原创 2012-02-11 17:20:53 · 153 阅读 · 0 评论 -
iOS地图的注释(Annotation)
1. 添加到map view的子视图不会随地图的移动而移动,map view会固定其子视图的位置。如果要添加随着地图移动的子视图,可以使用annotations和overlays。annotation用来显示由一个经纬度定义的位置,而overlay则是由多个点所定义或者包含了许多连续的图形。2.在地图上显示annotation,需要提供两个对象annotatio原创 2012-02-05 13:09:51 · 1865 阅读 · 0 评论 -
人机交互指南-2.app设计策略
创建APP定义声明1.列举出所有你认为用户会喜欢的特性2.确定你的用户群3.过滤特性列表4.不要停止思考根据设备来设计APP原创 2012-02-05 22:24:20 · 558 阅读 · 0 评论 -
iPhoned地图的一些用法(MapKit的使用)
1.三维球面和二维地图的转换关系2.MapKit支持三种坐标系统第一种是地图坐标,即经度纬度,用结构CLLocationCoordiante2D表示第二种是用于地图计算相关的坐标系 MKMapSize第三种是与UIView相关的坐标系CGSize CGRect3.坐标系之间的转换4.添加Map View到UI CGRect mapFrame原创 2012-01-31 23:53:09 · 375 阅读 · 0 评论 -
人机交互指南-2.app设计策略(官方文档)
sss翻译 2012-01-31 22:31:45 · 364 阅读 · 0 评论 -
人机交互指南-2HI Principles
1原创 2012-01-29 15:46:19 · 117 阅读 · 0 评论 -
人机交互指南-1平台特性
Platform Characteristics 平台特性The comfortable minimum size of tappable UI elements is 44 x 44 points. 屏幕的分辨率在普通屏幕上,一个像素等于一个point;而在Retina显示屏上一个point等于两个像素Device Orientation C原创 2012-01-29 15:44:22 · 382 阅读 · 0 评论 -
类似iPhone键盘出现动画的实现
用显示键盘动画的方式来显示DatePicker1.显示DatePicker- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *targetCell = [tableView cellForRowAtIndexPa原创 2012-01-26 22:49:02 · 631 阅读 · 0 评论 -
类似iPhone键盘出现动画的实现
原创 2012-01-26 22:41:38 · 142 阅读 · 0 评论 -
Date Formatting Programming Guide 小结
Date FormattersThere are two basic methods you use to create a string representation of a date and to parse a string to get a date object using a date formatter—dateFromString: and stringF原创 2012-01-25 18:55:01 · 141 阅读 · 0 评论 -
iPod Library Access Programming Guide 1
Here are just a few ideas for what you can do:Let a user assemble and play a soundtrack for your game or exercise appLet a user retrieve the names of their favorite artists, songs, and albums from翻译 2012-01-16 23:03:50 · 964 阅读 · 1 评论 -
iPod Library Access Programming Guide 4 - Using the iPod Library
Figure 4-1 illustrates how your application and the database access classes interact to retrieve media items.Retrieving Ungrouped Media ItemsListing 4-1 Creating and using a generic med翻译 2012-01-19 16:55:23 · 804 阅读 · 0 评论 -
iOS开发之-Table-View Cells
A Closer Look at Table-View CellsUsing Cell Objects in Predefined Stylestypedef enum { UITableViewCellStyleDefault, UITableViewCellStyleValue1, UITableViewCellStyl翻译 2011-12-06 17:05:56 · 2965 阅读 · 0 评论 -
iOS开发之-File System
1. You can only write inside your sandbox.翻译 2011-12-10 16:38:56 · 279 阅读 · 0 评论 -
iOS开发之-NavigationBar NavigationItem
UINavigationBar1. The UINavigationBar class implements a control for navigating hierarchical content. 2. You can modify the appearance of the bar using the barStyle, tintColor, and transluce翻译 2011-11-30 11:55:02 · 2293 阅读 · 0 评论 -
iOS开发之-Custom View Controllers
View Controller BasicsImplementation Checklist for Custom View Controllers1. For any custom view controllers you create, there are several tasks that you should always handle:翻译 2011-11-28 11:51:22 · 1350 阅读 · 0 评论 -
iOS开发之-Navigation Controllers
Navigation ControllersThe Objects of a Navigation Interface1. In addition, a navigation controller object automatically assigns itself as the delegate of itsUINavigatio翻译 2011-11-30 11:09:17 · 2319 阅读 · 0 评论 -
iOS开发之-Custom View Controller 2
Creating Custom View Controller Objects at RuntimeMyViewController* vc = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];1. A com翻译 2011-11-29 17:42:23 · 693 阅读 · 0 评论 -
iOS开发之-Cocoa Fundamental Guide 2-Cocoa Objects
Cocoa ObjectsObject-Oriented Programming with Objective-C1. The Dynamism of Objective-CDynamic typing—determining the class of an object at runtimeDynamic binding—determining the metho翻译 2011-11-28 10:53:57 · 421 阅读 · 0 评论 -
iOS开发之-View 2-Window and Views
Windows1. window object has several responsibilities:It contains your application’s visible content.It plays a key role in the delivery of touch events to your views and other application obj翻译 2011-11-22 10:10:01 · 2198 阅读 · 0 评论