<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Combining multiple UITextFields and a UITableView in a nice way for an iPhone app: part 2</title>
	<atom:link href="http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/</link>
	<description>About hardcore technology and softcore business</description>
	<lastBuildDate>Wed, 18 Jan 2012 11:55:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: Dirk de Kok</title>
		<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/comment-page-1/#comment-11057</link>
		<dc:creator>Dirk de Kok</dc:creator>
		<pubDate>Thu, 07 Apr 2011 14:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.d-17.com/?p=118#comment-11057</guid>
		<description>Hi @arri,

well the question is when to use a datasource? When filling in any value, or when the save button is touched. Right now I choose to have a separate way of storing temporary values, namely in the preserved cells and only update the datasource when the save button is hit.

Yes this is not good for performance, but hey who&#039;s gonna build a form on an iPhone with 50, 100 or 200 fields? So I think that problem is limited

@ali, @arri means that on the change of a UITextField, UIButton etc. you store this value immediately in a temp array or evey as you are trying, into variables declared in the controller. Just think about when you really use/persist these values.</description>
		<content:encoded><![CDATA[<p>Hi @arri,</p>
<p>well the question is when to use a datasource? When filling in any value, or when the save button is touched. Right now I choose to have a separate way of storing temporary values, namely in the preserved cells and only update the datasource when the save button is hit.</p>
<p>Yes this is not good for performance, but hey who&#8217;s gonna build a form on an iPhone with 50, 100 or 200 fields? So I think that problem is limited</p>
<p>@ali, @arri means that on the change of a UITextField, UIButton etc. you store this value immediately in a temp array or evey as you are trying, into variables declared in the controller. Just think about when you really use/persist these values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/comment-page-1/#comment-11013</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 05 Apr 2011 20:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.d-17.com/?p=118#comment-11013</guid>
		<description>your approach looks better. But, can you give a sample code or an example of doing this.

Also, I did not understand your words(ou are storing data in the tableview itsself, while this should be done
in your data-model, managed through the contoller object.)??

Now I am storing the data in variables declared in the controller, is this wrong?</description>
		<content:encoded><![CDATA[<p>your approach looks better. But, can you give a sample code or an example of doing this.</p>
<p>Also, I did not understand your words(ou are storing data in the tableview itsself, while this should be done<br />
in your data-model, managed through the contoller object.)??</p>
<p>Now I am storing the data in variables declared in the controller, is this wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arri</title>
		<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/comment-page-1/#comment-10974</link>
		<dc:creator>arri</dc:creator>
		<pubDate>Sun, 03 Apr 2011 22:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.d-17.com/?p=118#comment-10974</guid>
		<description>this approach will lead to performance issues when your tables gets larger.
the purpose of the cell identifier is make it easy/possible to re-use cells,
what you&#039;re doing is the opposite.

your problem is not the fact cells get re-used, but you&#039;re missing the 
point on the concept &#039;DataSource&#039;. 
You are storing data in the tableview itsself, while this should be done
in your data-model, managed through the contoller object.

one way is to keep an array that references the data for entry.</description>
		<content:encoded><![CDATA[<p>this approach will lead to performance issues when your tables gets larger.<br />
the purpose of the cell identifier is make it easy/possible to re-use cells,<br />
what you&#8217;re doing is the opposite.</p>
<p>your problem is not the fact cells get re-used, but you&#8217;re missing the<br />
point on the concept &#8216;DataSource&#8217;.<br />
You are storing data in the tableview itsself, while this should be done<br />
in your data-model, managed through the contoller object.</p>
<p>one way is to keep an array that references the data for entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/comment-page-1/#comment-10920</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Fri, 01 Apr 2011 18:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.d-17.com/?p=118#comment-10920</guid>
		<description>The simplest way I found from one website is to put an NSString variable for every textfield and update its value from the textfield text in the (- (void)textFieldDidEndEditing:(UITextField *)textField) that the textfield delegate will call. Then in every textfield creation code in (cellForRowAtIndexPath) you will put the text of this textfield to be the value of its NSString variable.</description>
		<content:encoded><![CDATA[<p>The simplest way I found from one website is to put an NSString variable for every textfield and update its value from the textfield text in the (- (void)textFieldDidEndEditing:(UITextField *)textField) that the textfield delegate will call. Then in every textfield creation code in (cellForRowAtIndexPath) you will put the text of this textfield to be the value of its NSString variable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Implementing a Data Entry UI on iPhone with Action Button &#171; GQAdonis</title>
		<link>http://blog.d-17.com/2009/10/combining-multiple-uitextfields-and-a-uitableview-in-a-nice-way-for-an-iphone-app-part-2/comment-page-1/#comment-9653</link>
		<dc:creator>Implementing a Data Entry UI on iPhone with Action Button &#171; GQAdonis</dc:creator>
		<pubDate>Tue, 15 Feb 2011 20:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.d-17.com/?p=118#comment-9653</guid>
		<description>[...] Implementing a Form Inside a UITableView--This uses a method for ensuring that data can be edited, but I am not so fond of the method that prevents the reuse of cells in this implementation. As alternatives, the Apple TaggedLocations Sample provides some good clues. Also, this post, from Twitterific&#039;s creators has some excellent guidance on this as well. Finally, IBAForms is an open source project that abstracts the entire process in a nice way that includes full source code. [...]</description>
		<content:encoded><![CDATA[<p>[...] Implementing a Form Inside a UITableView&#8211;This uses a method for ensuring that data can be edited, but I am not so fond of the method that prevents the reuse of cells in this implementation. As alternatives, the Apple TaggedLocations Sample provides some good clues. Also, this post, from Twitterific&#039;s creators has some excellent guidance on this as well. Finally, IBAForms is an open source project that abstracts the entire process in a nice way that includes full source code. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

