[b1 setImage: [UIImage imageNamed:@"check_a.png"] forState:UIControlStateNormal];
- Dec 02 Tue 2014 10:52
UIButton按鈕更換圖片
- Dec 01 Mon 2014 13:47
有時候一個小錯誤會造成一連串的錯誤
程式使用到一個空的物件
發生了例外導致一連串的錯誤如以下
ust-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
發生了例外導致一連串的錯誤如以下
ust-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
- Dec 01 Mon 2014 12:00
lexical or preprocessor issue 'climits' file not found
問題:
IOS專案用到OBJECTC與C++混寫的地方引用標頭檔出現錯誤
lexical or preprocessor issue
'climits' file not found
原因:是要去設定C++還境
解決方式:
到專案設定Build Settings->Apple LLVM Compile->compile source as-> Objective-C++
IOS專案用到OBJECTC與C++混寫的地方引用標頭檔出現錯誤
lexical or preprocessor issue
'climits' file not found
原因:是要去設定C++還境
解決方式:
到專案設定Build Settings->Apple LLVM Compile->compile source as-> Objective-C++
- Nov 30 Sun 2014 22:36
Android_java使用webview呼叫javascript出現錯誤訊息Uncaught ReferenceError: sumToJava is not defined at null:1
今天使用JAVA要呼叫WEBVIEW上的javascript時出現
錯誤訊息:
Uncaught ReferenceError: sumToJava is not defined at null:1
但是我有定義了sumToJava的javascript函式
原因是網頁尚未載入完成
因而導致找不到javascript凾式
解決方式等待網頁載入完成,可以使用載入完成來啟動
myBrowser.setWebViewClient(new WebViewClient() {
錯誤訊息:
Uncaught ReferenceError: sumToJava is not defined at null:1
但是我有定義了sumToJava的javascript函式
原因是網頁尚未載入完成
因而導致找不到javascript凾式
解決方式等待網頁載入完成,可以使用載入完成來啟動
myBrowser.setWebViewClient(new WebViewClient() {
- Nov 30 Sun 2014 00:11
K480藍芽無線鍵盤
- Nov 29 Sat 2014 22:54
Activity接收Activity回傳的值
如果一個Activity開啟新的必且等待他要回傳的值那寫法如下
呼叫M0102的寫法
M0101要呼叫M0102並等待他回傳值要使用startActivityForResult並且宣告onActivityResult來處理Activity返回時所帶的參數
startActivityForResult(intent, 給Activity一個編號型態為int);當值回傳再以requestCode來判斷.
呼叫M0102的寫法
Intent intent = new Intent(M0101.this, M0102.class);
// intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);