摘要:clippingNode不能被ccui.ScrollView、ccui.ListView、ccui.Layout裁剪问题,只需要 设置scrollView ...的裁剪类型 注:这个方法的对象必须继承自ccui.Layout,对cc.ScrollView、cc.ListView等不起作用,并且此对象
阅读全文
摘要:1 CCBoot.js prepare方法:注掉下面这行,先加载moduleConfig中的脚本后加载user脚本 //newJsList = newJsList.concat(jsList); //pengyingh 17 2 20 load user js in main.js 2 main.j
阅读全文
摘要:1 jin/Android.mk 中LOCAL_SRC_FILES 链接的是runtime-src/Classes中的cpp文件2jin/Android.mk 若LOCAL_LDLIBS := -landroid -llog 则Eclips可看到cocos2d.o的编译信息,编译速度较慢3 sdk的...
阅读全文
摘要:详情参见:http://sdkbox-doc.github.io/en/plugins/facebook/v3-js/#manual-integration一步不落然后*** Terminating app due to uncaught exception 'InvalidOperationExc...
阅读全文
摘要:A.用CCFuncBlock可以不用传参数,代码简洁高效,函数内临时变量如果不retain,不存在跳出函数使用域后被回收情况(推荐)//用CCCallBlock的block方式CGPoint convertedLocation = [self convertTouchToNodeSpace:touch];CCCallBlock *block = [CCCallBlock actionWithBlock:^{ //回调方法在一个函数循环内3个好处: 1.不用传递(void *)参数,所以convertedLocation不需要封装, 2....
阅读全文