读书时间 2010/06/26 - 1 Xcode

来源:互联网 发布:淘宝刚开店怎么运营 编辑:程序博客网 时间:2024/05/01 02:27

《iPhone3开发基础教程》

 

0. 杂想杂问

Q: How to "jump" to a synbol's definition in XCode ???

Q: @class干嘛的?

   A:仅仅是对类的超前引用。

T:Alt/Option Kay + double click will display a keyword's document message, like description for a "protocol".

Q:原书的source code如何运行起来?会少一些库?帮助文件也不全的?

 

1. Chap 2 创建基本项目

 

* nib/xib文件

nib文件,从本质上说是一个地象容器,其中序列化了所有界面对象及其它对象,在程序装载的时候反序列化,生成相关对象实例。

 

* 特殊的xib元素

Q: File's Owner 

Q: First Responder 

 

*project-name_Info.plist: 存放项目的重要属性

icon file

Bundle.identifier

 

2. Chap 3 处理基本交互

 

Q: what if property var name is different from property name ?

Q: why could not find the method applicationDidFinishLaunching() in Buton_FunAppDelegate.m ???

Q: How to delete an instance from *.xib file ?

 

* UIApplicationMain

Discussion

This function instantiates the application object from the principal class and and instantiates the delegate (if any) from the given class and sets the delegate for the application. It also sets up the main event loop, including the application’s run loop, and begins processing events. If the application’s Info.plist file specifies a main nib file to be loaded, by including theNSMainNibFile key and a valid nib file name for the value, this function loads that nib file.

Despite the declared return type, this function never returns. For more information on how this function behaves, see ““The Core Application Design”” in iOS Application Programming Guide.

 

原创粉丝点击