06 2014 档案
摘要:我不知道该如何翻译Block这个关键字在Objective-C中,但是可以肯定得是:Block是一段代码。 我们来看它的英文解释: Blocks are a way to define a block of code that you will use at a later time. Someti
阅读全文
摘要:Method DescriptionloadView Creates or returns a view for the view controller.viewDidLoadView has finished loading.viewWillAppear: View is about to app...
阅读全文
摘要:When you were dragging in your label and your button to this view, you were adding them as subviews.By doing this programmatically you can see what go...
阅读全文
摘要:• 第1级-能力突出的个人:用自己的智慧、知识、技能和良好的工作作风作出巨大贡献。• 第2级-乐于奉献的团队成员:为实现集体目标贡献个人才智,与团队成员通力合作。• 第3级-富有实力的经理人:组织人力和资源,高效地朝既定目标前进。• 第4级-坚强有力的领导者:全身心投入、执著追求清晰可见、催人奋发的...
阅读全文
摘要:1. 静态内存静态内存是指在程序开始运行时由编译器分配的内存,它的分配是在程序开始编译时完成的,不占用CPU资源。程序中的各种变量,在编译时系统已经为其分配了所需的内存空间,当该变量在作用域内使用完毕时,系统会自动释放所占用的内存空间。变量的分配与释放,都无须程序员自行考虑。eg:基本类型,数组2....
阅读全文
摘要:C++头文件中预编译宏的目的eg:#ifndef _FACTORY_H_#define _FACTORY_H_......#endif //~_FACTORY_H_防止头文件被重复包含,导致变量或类型被重复定义
阅读全文
摘要:方法一:$ cd cocos2d-x$ ./setup.py$ source FILE_TO_SAVE_SYSTEM_VARIABLE$ cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR方法二:>cd You...
阅读全文
摘要:1. Loading Data from Files and URLs// Assuming that there is a text file at /Examples/Test.txt:NSString* filePath = @"/Examples/Test.txt";NSData* load...
阅读全文
摘要:MySQL复制错误]Last_Errno: 1666 Last_Error: Error executing row event: 'Cannot execute statement: imposs收到email报警,Last_Error: Error executing row event: 'C...
阅读全文