11 2012 档案
Error to compile Three20 in iOS6, it not be compiled only Three20UI project.
摘要:Today, i had trying update my project with three20 to ios6, but somethings had raised that it reports errors (e.g. _tapCount,_view can not by finded) in fileUIViewAdditions.m.打开文件后发现里面有宏定义,判断如果是调试阶段,会使用 私有变量 输出某些信息,结果屏避之再编译就可以了。 1 / Remove GSEvent and UITouchAdditions from Release builds 2 #ifdef ..
阅读全文
The property delegate of CALayer cause Crash.
摘要:在非arc与arc的环境中使用时,导致程序crash. 1 //当前类使用-fno-objc 编译 2 3 needle_ = [[MyView alloc] init]; 4 5 needleLayer = [CALayer layer]; 6 needleLayer.delegate = sel
阅读全文
Draw a Star using Quartz 2D
摘要:1 #define PSIZE 16 // size of the pattern cell 2 3 static void MyDrawStencilStar (void *info, CGContextRef myContext) 4 { 5 int k; 6 dou...
阅读全文
浙公网安备 33010602011771号