原创 cocos edit編輯類型
-- 創建EditBox function Method.createInputBox(_parent,_isNumber,_txt1,_txt2,_fontSize,_maxLength) local accedit = cc.
原创 cocos2dx 3.0 lua 關於listview和item點擊和滑動的觸摸吞噬問題
cocos版本3.15,使用studio編輯界面 -- 創建itemlocal item1 =Item:create(array[index])item1:setPosition(pos)self.ui.listview:addChild
原创 IOS APP 上架App Store
總結分爲以下幾個步驟:1、創建APP身份證(App IDs)2、申請iOS發佈證書3、申請iOS發佈描述文件4、上傳ios證書編譯打包IPA5、在iTunes Connect創建App6、Windows下上傳IPA到App Store7、
原创 App Store審覈備註
Dear reviewers,we are sure that there is no violation of the regulations you gave us.We hope you can review again!If th
原创 Lua利用cjson讀寫json
解析JSON cjson.decode local cjson = require "cjson" local sampleJson = [[{"age":"23","testArray":{"array":[8,9,11,14,
原创 Cocos2dx 常見動作
1. bool HelloWorld::init() { ////////////////////////////// // 1. super init first if ( !CCLayer::i
原创 Xcode常用快捷鍵
1.替換: Option+Command+F Replace All 是全部替換本文檔範圍內的字符串 Replace 是替換當前字符串
原创 網絡請求報錯 code = 1002 處理
有時候網絡請求會異常,比如報錯: NSURLConnection finished with error - code -1002 Response failed, error buffer: unsupported URL 處理方法
原创 cocos2dx 3.0 lua 使用spine骨骼動畫
以下使用spine的時候,spine動畫是使用studio導出的,在studio中導出格式設置爲JSON,導出目錄任選,勾選Create Atlas,點擊導出 ,然後把它放在了我的工程裏面進行的操作 爲了不用在每次使用spine的時候都寫
原创 Android添加真機測試
一、添加真機 分爲以下幾個步驟: 1.終端輸入 system_profiler SPUSBDataType 查看系統中的USB設備信息,找到相應的 Vender ID 2.終端輸入 cd /Users/xzl/.android 3.ls
原创 根據手機設定的語言顯示app的名稱
1.添加語言包 2.新建string文件 名稱使用InfoPlist 3.選中string文件添加 4.設置對應語言顯示的app名稱
原创 動態創建 精靈組成的數字
newNode:function(type) { var node = new cc.Node() if(type && global.core.isFunction(type)) {
原创 正則表達式的一些運用
1、手機號 //因爲各個運營商開頭號碼不同,這裏只匹配11位是比較好的方法 - (BOOL)isValidPhoneNumber { NSString *regex = @"^[0-9]{11}"; return [se
原创 C++字符串
//1.實現strcpy. char* MyStrCpy( char *pDest, const char *pSrc ) { if( nullptr == pDest || nullptr == pSr
原创 常用GIt
(2)which git:查看git的安裝路徑。默認一般是/usr/bin/git. (3)curl http://npmjs.org/install.sh | sh :安裝node.js的套件管理工具; (4)sudo npm up