您的位置:首页 > 其它

读书时间 2012/02/09 iPhone/iPad

2012-02-09 11:45 447 查看
《iOS软件开发接密》

Chap 2,

1. 数据类型

* Objective-C数据类型

id = void *

* SEL

可当作函数指针来使用,但不是指针,准确地说是const char *

[object performSelector:@selector(doSomething)] == [object doSomething]

* 空

nil:对象; 发送消息给 nil,返回0,不会crash!

NULL:任何指针

NSNull:集合

Q:区别何在?

2. 字符串

* StringWithFormat = sprintf(...)

3. 线程

[NSThread detachNewThreadSelector:@selector(doSomething) toTarget:self withObject:NULL];

^线程方法名 ^ 对象 ^ 参数?

4. 消息

Q:NSNotificationCenter是同步的东东???

问题:以下程序无法cmpile???

#import<Foundation/Foundation.h>
//#include <stdio.h>

int main (int argc,constchar * argv[]) {
// insert code here...
// printf("Hello, World!\n");
NSLog(@"Hi there. ");

return 0;
}

# Standford iPhone/iPad视频 -2010冬
Lecture 21 Audio API, Video Playback http://v.163.com/movie/2010/6/D/H/M6RU83DCT_M6RUA3EDH.html

Q:AVAudioRecorder录下来的东东什么时候,在哪里存的?

* audio API: core Audio
High level
System Sound API
AVAudioPlayer API
Low Level
Audio Toolbox
Audio Unit Q: What's the difference ?
OpenAL ( 3D audio )
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: