随笔分类 -  cocos2d-x

XCode archive后没有submit按钮选项
摘要:引起原因:由于工程中含有sub project,而sub project中有private 或 public 的文件导致的。只有两个选项:解决办法: Your PROJECT - Skip Install - set to NO Your libraries - Skip Install - set to YES In your SUBproject you should check "Copy headers" sectionclick on SUB projectBuilding PhasesDRAG all files fron Public and Private 阅读全文

posted @ 2013-04-01 19:52 Crazy_程序猿 阅读(277) 评论(0) 推荐(0)

CCLabelTTF : will become a white rectangle
摘要:If you want invoke cocos2d-x function from a thread,It may be Crash.I am working on a network game using cocos2dx with libcurl.I created a CCLabelTTF on a CCLayer object.Then I made a thread to request my java server using curl.when a get response from the thread, I want to print a string on the CCL 阅读全文

posted @ 2013-03-22 09:52 Crazy_程序猿 阅读(171) 评论(0) 推荐(0)

cocos2d-x在ios平台获取当前设备的语言种类
摘要:1typedefenumLanguageType2{3kLanguageEnglish=0,4kLanguageChinese,5kLanguageFrench,6kLanguageItalian,7kLanguageGerman,8kLanguageSpanish,9kLanguageRussian10}ccLanguageType;1112131415ccLanguageTypeCCApplication::getCurrentLanguage()16{17//getthecurrentlanguageandcountryconfig18NSUserDefaults*defaults=[N 阅读全文

posted @ 2013-02-17 10:49 Crazy_程序猿 阅读(597) 评论(0) 推荐(0)

导航