can't change textfield in scrollview
<p>Can’t change text field in scrollView.</p>

<p>ScrollView is fine:</p>

<pre><code>[self.view addSubview:myScrollViewObj];
</code></pre>

<p>Assorted column / row fields, those work too:</p>

<pre><code>(nonatomic,retain)
(init, alloc)
row02_col03.text = @”456”;
[myScrollViewObj addSubview:row02_col03];
</code></pre>

<p>(Too much like work to use a table view.)  I can change the contents of row02_col03 </p>

<pre><code>row02_col03.text = @”789”;
</code></pre>

<p>but “789” over-writes “456.”  Both values are on the screen at the same time and in the same position.  Happens w/textView, happens with Label.</p>

<p>Huh?  OK, if updating didn’t work, then remove the “old” field before writing to a new one.</p>

<pre><code>[row02_col03 removeFromSuperview];
(init, alloc again)
row02_col03.text = @”789”;
</code></pre>

<p>Now “456” doesn’t go anywhere (so much for “remove”), yet the NSLog statements shows that the new field correctly contains “789.” </p>

<p>Weird.  Another stackoverflow entry suggested using tags.  Did that:</p>

<pre><code>(init, alloc again)
row02_col03.tag = 10;
row02_col03.text = @”456”;
[[myScrollViewObj viewWithTag:10] removeFromSuperview];
(init, alloc again)
row02_col03.tag = 10;
row02_col03.text = @”789”;
</code></pre>

<p>Yes, I put NSLog statements before and after; the removeFromSuperview line did execute.  No, presence / absence of “retain” made no difference</p>

<p>It’s an old app, and I didn’t have to update anything, but now that I need to (and can’t) I’d like to understand what I’m missing.  Anyone have a clue?</p>
