我只是試圖將我的文本textfield設置爲與詳細文本標籤顏色相同的顏色,這似乎是正確的方式來做到這一點,看到的東西提供這個答案在這裏,但我得到一個錯誤,有任何想法嗎 ?iPhone,txtPassword.textColor = cell.detailTextLabel.textColor; NSInternalInconsistencyException,原因:無效的參數不令人滿意:顏色?
txtPassword.textColor = cell.detailTextLabel.textColor;
Assertion failure in -[UITextFieldLabel setTextColor:], /SourceCache/UIKit_Sim/UIKit-1262.60.3/UILabel.m:312
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: color'
你用什麼方法設置顏色? detailTextLabel(已經)是否存在?我認爲你正在嘗試爲txtPassword的textColor設置nil。 – 2010-10-15 12:27:59
在cellForRowAtIndexpath http://img.skitch.com/20101015-p66sexx9mudu1frhdtyh1d55wr.jpg – Jules 2010-10-15 12:45:04