<?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: Custom UITableViewCell in IB</title>
	<atom:link href="http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphone.galloway.me.uk</link>
	<description>iPhone Applications</description>
	<lastBuildDate>Wed, 01 Sep 2010 11:59:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sascha</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-1779</link>
		<dc:creator>Sascha</dc:creator>
		<pubDate>Wed, 18 Aug 2010 10:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-1779</guid>
		<description>Hi Matt,

awesome! Thx for the straightforward tutorial, it saved me a lot of time.

I came across one problem: In my app, I need to dynamically show and hide 5 cells I created as exposed. That&#039;s no problem using the &quot;hidden&quot; property of the cells, however, I need this behaviour animated. So what I&#039;ve tried to do first of all instead of hiding is deleting the cells like this:

[fooTable deleteRowsAtIndexPaths:[NSArray arrayWithObject:fooIndexPath]] withRowAnimation:UITableViewRowAnimationTop];

This results in the following exception:

&#039;Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (3) must be equal to the number of rows contained in that section before the update (5), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).&#039;

I&#039;m not sure if this has something to do with the dataSource which should probably be updated as well, but... how?

Thanks for any suggestions!

cheers,
Sascha</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>awesome! Thx for the straightforward tutorial, it saved me a lot of time.</p>
<p>I came across one problem: In my app, I need to dynamically show and hide 5 cells I created as exposed. That&#8217;s no problem using the &#8220;hidden&#8221; property of the cells, however, I need this behaviour animated. So what I&#8217;ve tried to do first of all instead of hiding is deleting the cells like this:</p>
<p>[fooTable deleteRowsAtIndexPaths:[NSArray arrayWithObject:fooIndexPath]] withRowAnimation:UITableViewRowAnimationTop];</p>
<p>This results in the following exception:</p>
<p>&#8216;Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (3) must be equal to the number of rows contained in that section before the update (5), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted).&#8217;</p>
<p>I&#8217;m not sure if this has something to do with the dataSource which should probably be updated as well, but&#8230; how?</p>
<p>Thanks for any suggestions!</p>
<p>cheers,<br />
Sascha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karib</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-1666</link>
		<dc:creator>Karib</dc:creator>
		<pubDate>Sun, 08 Aug 2010 18:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-1666</guid>
		<description>Thanks for this great tutorial. It saves me time on the table view that I would like to create. 
For table view with 2 sections with 1 row on each section, the following codes can be used.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	UITableViewCell *tvcSection = nil;
	int iSection = (int)[indexPath section];
	switch (iSection) {
		case 0: tvcSection = cellOne;
				break;
		case 1: tvcSection = cellTwo;
				break;
	}
	return tvcSection;
}


- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 2;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return 1;
}</description>
		<content:encoded><![CDATA[<p>Thanks for this great tutorial. It saves me time on the table view that I would like to create.<br />
For table view with 2 sections with 1 row on each section, the following codes can be used.</p>
<p>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {<br />
	UITableViewCell *tvcSection = nil;<br />
	int iSection = (int)[indexPath section];<br />
	switch (iSection) {<br />
		case 0: tvcSection = cellOne;<br />
				break;<br />
		case 1: tvcSection = cellTwo;<br />
				break;<br />
	}<br />
	return tvcSection;<br />
}</p>
<p>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {<br />
	return 2;<br />
}</p>
<p>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {<br />
	return 1;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-1498</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sat, 17 Jul 2010 19:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-1498</guid>
		<description>This is a very simple and easy tutorial but for some reason my  UITableViewCell objects are always nil so the program crashes. It appears as if interface builder is not linking them to the IBOutlets. Although, if I click the file&#039;s owner in interface builder it shows all cells are properly linked.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>This is a very simple and easy tutorial but for some reason my  UITableViewCell objects are always nil so the program crashes. It appears as if interface builder is not linking them to the IBOutlets. Although, if I click the file&#8217;s owner in interface builder it shows all cells are properly linked.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OE</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-1485</link>
		<dc:creator>OE</dc:creator>
		<pubDate>Sat, 17 Jul 2010 04:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-1485</guid>
		<description>Amazing! After 5 hours of searching, a simple tutorial for custom cells in IB! Thanks!</description>
		<content:encoded><![CDATA[<p>Amazing! After 5 hours of searching, a simple tutorial for custom cells in IB! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene Pardon</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-1324</link>
		<dc:creator>Rene Pardon</dc:creator>
		<pubDate>Thu, 24 Jun 2010 11:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-1324</guid>
		<description>Hi,

this is a very simple to understand tutorial. It was really helpful.
Thank you for that :)


regards
René</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>this is a very simple to understand tutorial. It was really helpful.<br />
Thank you for that <img src='http://iphone.galloway.me.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>regards<br />
René</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-863</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Sun, 28 Mar 2010 13:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-863</guid>
		<description>I think you should add the case where you are creating more than two as this is a typical requirement of cell subclassing</description>
		<content:encoded><![CDATA[<p>I think you should add the case where you are creating more than two as this is a typical requirement of cell subclassing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-829</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Sun, 14 Mar 2010 17:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-829</guid>
		<description>&gt; You *SHOULD*… but you didn’t.
Apologies, that was Wordpress taking away the &lt;, &gt; thinking that it was an HTML tag. Rectified now.

&gt; Where do you drop them in? Into the rows in the tableView?
You drop them into the XIB itself at the same level as the main UIView in there, as per the 2nd screenshot.

&gt; How do you “open” a cell up?
Double click on it.

&gt; *PLEASE* alway show a screen-shot of the final, completed screen.
&gt; Just “wishing” that your screen looks like my screen… is useless.
Good idea.

This was just a very quick tutorial - it&#039;s not part of the remit of this site that I provide &quot;good&quot; tutorials, I just try to help out others with what I&#039;ve found out myself. Apologies if the tutorial wasn&#039;t to the standard you&#039;d hoped.</description>
		<content:encoded><![CDATA[<p>> You *SHOULD*… but you didn’t.<br />
Apologies, that was Wordpress taking away the < , > thinking that it was an HTML tag. Rectified now.</p>
<p>> Where do you drop them in? Into the rows in the tableView?<br />
You drop them into the XIB itself at the same level as the main UIView in there, as per the 2nd screenshot.</p>
<p>> How do you “open” a cell up?<br />
Double click on it.</p>
<p>> *PLEASE* alway show a screen-shot of the final, completed screen.<br />
> Just “wishing” that your screen looks like my screen… is useless.<br />
Good idea.</p>
<p>This was just a very quick tutorial &#8211; it&#8217;s not part of the remit of this site that I provide &#8220;good&#8221; tutorials, I just try to help out others with what I&#8217;ve found out myself. Apologies if the tutorial wasn&#8217;t to the standard you&#8217;d hoped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jill</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-828</link>
		<dc:creator>Jill</dc:creator>
		<pubDate>Sun, 14 Mar 2010 16:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-828</guid>
		<description>*PLEASE* alway show a screen-shot of the final, completed screen.
  
Just &quot;wishing&quot; that your screen looks like my screen... is useless.</description>
		<content:encoded><![CDATA[<p>*PLEASE* alway show a screen-shot of the final, completed screen.</p>
<p>Just &#8220;wishing&#8221; that your screen looks like my screen&#8230; is useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-827</link>
		<dc:creator>Kathy</dc:creator>
		<pubDate>Sun, 14 Mar 2010 16:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-827</guid>
		<description>&gt; Add two Table View Cell items in IB to your
&gt; customTableCellViewController.xib file.

Where do you drop them in?  Into the rows in the tableView?

&gt; Then, open each table view cell item and drop something 
  
How do you &quot;open&quot; a cell up?</description>
		<content:encoded><![CDATA[<p>&gt; Add two Table View Cell items in IB to your<br />
&gt; customTableCellViewController.xib file.</p>
<p>Where do you drop them in?  Into the rows in the tableView?</p>
<p>&gt; Then, open each table view cell item and drop something </p>
<p>How do you &#8220;open&#8221; a cell up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carol</title>
		<link>http://iphone.galloway.me.uk/iphone-sdktutorials/custom-uitableviewcell/comment-page-1/#comment-826</link>
		<dc:creator>Carol</dc:creator>
		<pubDate>Sun, 14 Mar 2010 16:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?page_id=58#comment-826</guid>
		<description>&gt; Also, we are going to be using this as a table view delegate and
&gt; data source so we should state that this class will conform to these
&gt; protocols
  
You *SHOULD*... but you didn&#039;t.</description>
		<content:encoded><![CDATA[<p>&gt; Also, we are going to be using this as a table view delegate and<br />
&gt; data source so we should state that this class will conform to these<br />
&gt; protocols</p>
<p>You *SHOULD*&#8230; but you didn&#8217;t.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
