iPhone, txtPassword.textColor = cell.detailTextLabel.textColor; NSInternalInconsistencyException, reason:Invalid parameter not satisfying: color?
<p>I'm just trying to set my text textfield to the same color as the detail text label colour which seems to be the correct way to do it, seen something providing this as an answer here, but I'm getting an error, any ideas ?</p>

<pre><code>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'
</code></pre>
