NSLog在Release版本也会调用 - - NSAssert NSCAssert

Remember to remove or comment out NSLog calls before shipping your app, as you probably don’t want your finished app to dump lots of messages into th...

2013-10-30 21:54:55

阅读数 1489

评论数 0

回调函数 CALLBACK

回调函数 CALLBACK 回调函数就是一个通过函数指针调用的函数。如果你把函数的指针(地址)作为参数传递给另一个函数,当这个指针被用为调用它所指向的函数时,我们就说这是回调函数。回调函数不是由该函数的实现方直接调用,而是在特定的事件或条件发生时由另外的一方调用的,用于对该事件或条件进行响应。 ...

2013-10-30 15:52:06

阅读数 483

评论数 0

"\xA1\xbb" 转义字符

2. 八进制转义字符 它是由反斜杠'\'和随后的1~3个八进制数字构成的字符序列。例如,'\60'、'\101'、'\141'分别表示字符'0'、'A'和'a'。因为字符'0'、'A'和'a'的ASCII码的八进制值分别为60、101和141。 字符集中的所有字符都可以用八进制转义字符表示。 ...

2013-10-30 10:34:57

阅读数 1447

评论数 0

char, unsigned char = BYTE; short, unsigned short = WORD; long, unsigned long = DWORD;

数据类型 char , unsigned char = BYTE;  short, unsigned short = WORD;  long, unsigned long = DWORD;  int , unginged int = UINT     在Turbo C语言中, 每个...

2013-10-30 10:27:21

阅读数 947

评论数 0

awakeFromNib

awakeFromNib message is sent to all nib-instantiated objects just after they are instantiated by the loading of the nib:  - (void) awakeFromNib { ...

2013-10-28 23:53:55

阅读数 672

评论数 0

Action

An action is a message emitted automatically by a Cocoa UIControl interface object (a control), and sent to another object, when the user does somet...

2013-10-28 23:50:14

阅读数 565

评论数 0

Outlet Collections

An outlet collection is an NSArray instance variable (in code) matched (in a nib) by multiple connections to objects of the same type. For example, ...

2013-10-28 23:37:17

阅读数 1353

评论数 0

Deleting an Outlet

Deleting an outlet coherently — that is, without causing one of the problems described in the previous section — involves working in several places a...

2013-10-28 23:21:33

阅读数 609

评论数 0

Outlet

An outlet is something in a nib file: it’s a connection from one object in a nib file to another. For example, let’s say that we’ve made a nib where...

2013-10-28 19:04:31

阅读数 568

评论数 0

触发ASSERT(afxCurrentResourceHandle != NULL)错误的原因

这种错误的原因是由于要使用MFC库中的某些资源,但是MFC并没有被初始化.  这种情况多发生在atl和其它非MFC工程,后追加MFC的头文件获得了部分支持 现象:1) 编译可以通过 2)有些MFC类可以使用  3) 使用CRectTracker, CMenu.LoadMenu....时出现触发...

2013-10-28 15:02:00

阅读数 710

评论数 0

fatal error LNK1207

VC中错误:LINK : fatal error LNK1207: incompatible PDB format in "H:\例子000\Debug\main.pdb"; delete and rebuild Error executing link.exe. 即链...

2013-10-28 15:00:58

阅读数 3569

评论数 0

Frameworks & Modules

UIKit Cocoa classes that are specialized for iOS, whose names begin with “UI,” are part of the UIKit framework. The UIKit framework is imported ()...

2013-10-27 22:13:44

阅读数 650

评论数 0

UIApplicationMain

int main(int argc, char *argv[]) {     @autoreleasepool {         return UIApplicationMain(argc, argv, nil,                                  NSSt...

2013-10-27 21:30:42

阅读数 767

评论数 0

extern “C”

extern “C” 使用extern “C”关键字实际上相当于一个编译器的开关,它可以将c++语言的函数编译为c语言的函数名称。即保持编译后的函数符号名等于源代码中的函数名称。

2013-10-25 16:50:19

阅读数 421

评论数 0

转贴 fatal error LNK1201:

OglPMesh fatal error LNK1201: 写入程序数据库“d:\OglPMesh\Debug\OglPMesh.pdb”时出错;请检查是否是磁盘空间不足、路径无效或权限不够 上面的错误在 MSDN的解释如下: 写入程序数据库“filename”时出错;请检查是否是磁盘...

2013-10-25 13:27:17

阅读数 963

评论数 0

To see an outline of a view’s subview hierarchy at runtime

To see an outline of a view’s subview hierarchy at runtime while paused in the debugger, use the debugger console to send the recursiveDescription co...

2013-10-24 22:49:45

阅读数 424

评论数 0

Displaying Alerts with UIAlertView

- (void) viewDidAppear:(BOOL)paramAnimated{     [super viewDidAppear:paramAnimated];     UIAlertView *alertView = [[UIAlertView alloc] ...

2013-10-22 23:49:06

阅读数 714

评论数 0

Adding Object Subscripting Support to Your Classes

Traditionally, NSString *const kFirstNameKey = @"firstName"; NSString *const kLastNameKey = @"lastName"; NSMutableDictionary *...

2013-10-22 22:51:33

阅读数 604

评论数 0

NSSet

NSSet *shoppingList = [[NSSet alloc] initWithObjects:                        @"Milk",                        @"Bananas",    ...

2013-10-22 22:06:44

阅读数 561

评论数 0

NSDictionary

NSDictionary *personInformation = @{   @"firstName" : @"Mark",   @"lastName" : @"Tremonti",   @"a...

2013-10-22 22:00:24

阅读数 504

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭