<?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: Don&#8217;t use UITableViewController. Really.</title>
	<atom:link href="http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/</link>
	<description>...just some of my thoughts.</description>
	<lastBuildDate>Fri, 20 Aug 2010 13:33:09 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rafael</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-182</link>
		<dc:creator>Rafael</dc:creator>
		<pubDate>Wed, 21 Jul 2010 23:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-182</guid>
		<description>Hi I have find one case where we just can use the UITableViewController, when we have a UIViewController and inside a UIScrollViewController and try to add a UIViewController with UITableView inside the UIScrollView we hack a crash, in this case we have just one option: use UITableViewController

If you have any other option to this case, i will be very glad.

Best.

PS: I comment two because the first my email is wrong, if you answer please use this email</description>
		<content:encoded><![CDATA[<p>Hi I have find one case where we just can use the UITableViewController, when we have a UIViewController and inside a UIScrollViewController and try to add a UIViewController with UITableView inside the UIScrollView we hack a crash, in this case we have just one option: use UITableViewController</p>
<p>If you have any other option to this case, i will be very glad.</p>
<p>Best.</p>
<p>PS: I comment two because the first my email is wrong, if you answer please use this email</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-171</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Thu, 13 May 2010 09:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-171</guid>
		<description>Hi Will Homer,
I&#039;ve tried as you said but it doesn&#039;t work in my case.
I&#039;ve initialized the tableViewController in my AppDelegate and passed it to the TabController with the method -initWithRootController.
I&#039;ve tried to add the NavBar both in -viewWillAppear and -viewDidLoad. In the first case I obtain a full screen navbar, in the second just the tableView.
Tried also with the system here but the navbar scroll within the tableView :http://dlinsin.blogspot.com/2010/01/adding-uinavigationbar-to-uitableview.html</description>
		<content:encoded><![CDATA[<p>Hi Will Homer,<br />
I&#8217;ve tried as you said but it doesn&#8217;t work in my case.<br />
I&#8217;ve initialized the tableViewController in my AppDelegate and passed it to the TabController with the method -initWithRootController.<br />
I&#8217;ve tried to add the NavBar both in -viewWillAppear and -viewDidLoad. In the first case I obtain a full screen navbar, in the second just the tableView.<br />
Tried also with the system here but the navbar scroll within the tableView :http://dlinsin.blogspot.com/2010/01/adding-uinavigationbar-to-uitableview.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Homer</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-157</link>
		<dc:creator>Will Homer</dc:creator>
		<pubDate>Wed, 03 Feb 2010 03:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-157</guid>
		<description>While i agree with not liking UITableViewControllers I recently was doing a project where it was much easier to use one. During this project though that some of the things you suggested are possible. For example if you want a view that does not scroll with the table you can simply add it to the superview, for example:

[self.view addSubview:datePickerView];

Will scroll with the table but,

[self.view.superview addSubview:datePickerView];

Won&#039;t scroll with the and then you just resize the table frame so it does not hide any cells.

[[self tableView] setFrame:CGRectMake(0,0,320,200)];

The same may also apply to things like background colour also although I have not tested it. I&#039;m not sure if this would work in Interface Builder though as I do not own a Mac so all my UI&#039;s are written programmatically using Linux.</description>
		<content:encoded><![CDATA[<p>While i agree with not liking UITableViewControllers I recently was doing a project where it was much easier to use one. During this project though that some of the things you suggested are possible. For example if you want a view that does not scroll with the table you can simply add it to the superview, for example:</p>
<p>[self.view addSubview:datePickerView];</p>
<p>Will scroll with the table but,</p>
<p>[self.view.superview addSubview:datePickerView];</p>
<p>Won&#8217;t scroll with the and then you just resize the table frame so it does not hide any cells.</p>
<p>[[self tableView] setFrame:CGRectMake(0,0,320,200)];</p>
<p>The same may also apply to things like background colour also although I have not tested it. I&#8217;m not sure if this would work in Interface Builder though as I do not own a Mac so all my UI&#8217;s are written programmatically using Linux.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylar</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-156</link>
		<dc:creator>Skylar</dc:creator>
		<pubDate>Sat, 30 Jan 2010 05:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-156</guid>
		<description>Of course, this talk about table backgrounds is almost moot, what with 3.2&#039;s newly added UITableView API.  Regardless, you&#039;ll want to keep this in mind if you want to back apps that are compatible with older versions of the OS.</description>
		<content:encoded><![CDATA[<p>Of course, this talk about table backgrounds is almost moot, what with 3.2&#8217;s newly added UITableView API.  Regardless, you&#8217;ll want to keep this in mind if you want to back apps that are compatible with older versions of the OS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylar</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-155</link>
		<dc:creator>Skylar</dc:creator>
		<pubDate>Thu, 28 Jan 2010 06:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-155</guid>
		<description>Pierre, there are two issues with your work around.  First of all, you are setting the background of the parent view controller.  Often times, this is a navigation or tab bar controller.  While this certainly is acceptable for this table, it may cause ill suited backgrounds for any other tables presented.

The second, and arguably more important, reason has to do with the drawing.  What you are essentially doing is telling the device to draw two controllers: the one with the image, and the one that&#039;s transparent.  If you use a view controller with a background image, which is by default opaque, then the device won&#039;t (or shouldn&#039;t, I haven&#039;t experimented) draw what&#039;s hidden by the colored background image.  Effectively reducing draw time and increasing performance.

</description>
		<content:encoded><![CDATA[<p>Pierre, there are two issues with your work around.  First of all, you are setting the background of the parent view controller.  Often times, this is a navigation or tab bar controller.  While this certainly is acceptable for this table, it may cause ill suited backgrounds for any other tables presented.</p>
<p>The second, and arguably more important, reason has to do with the drawing.  What you are essentially doing is telling the device to draw two controllers: the one with the image, and the one that&#8217;s transparent.  If you use a view controller with a background image, which is by default opaque, then the device won&#8217;t (or shouldn&#8217;t, I haven&#8217;t experimented) draw what&#8217;s hidden by the colored background image.  Effectively reducing draw time and increasing performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-154</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Thu, 28 Jan 2010 02:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-154</guid>
		<description>Great article!
I tend to agree with you, your approach allows much more options.It&#039;s worth mentioning though tha there actually is a way to have a background image with a UITable ViewController:
self.tableView.backgroundColor =[UIColor clearColor];

self.tableView.separatorColor = [UIColor clearColor];

self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@&quot;default.png&quot;]];

Pierre</description>
		<content:encoded><![CDATA[<p>Great article!<br />
I tend to agree with you, your approach allows much more options.It&#8217;s worth mentioning though tha there actually is a way to have a background image with a UITable ViewController:<br />
self.tableView.backgroundColor =[UIColor clearColor];</p>
<p>self.tableView.separatorColor = [UIColor clearColor];</p>
<p>self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"default.png"]];</p>
<p>Pierre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-152</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-152</guid>
		<description>Good points, except, the only reason people use a UITableViewController is because it gives automatic scrolling of the table when using UITextFields within the table...a very common scenario in iPhone development...

Try it without and the keyboard will obscure the lower fields... and so the decision is made for you.. if you have a form page with more than say 5 elements, you&#039;ll need UITableViewController... period.</description>
		<content:encoded><![CDATA[<p>Good points, except, the only reason people use a UITableViewController is because it gives automatic scrolling of the table when using UITextFields within the table&#8230;a very common scenario in iPhone development&#8230;</p>
<p>Try it without and the keyboard will obscure the lower fields&#8230; and so the decision is made for you.. if you have a form page with more than say 5 elements, you&#8217;ll need UITableViewController&#8230; period.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-151</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 19 Jan 2010 02:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-151</guid>
		<description>This is working for for everything but the keyboard. I have a UITextView in one or two of the cells and when the keyboard appears and disappears, I can&#039;t get the animation to come out perfect. I spent a day or two over the holidays trying to figure it out and ended up going back to the UITableViewController.</description>
		<content:encoded><![CDATA[<p>This is working for for everything but the keyboard. I have a UITextView in one or two of the cells and when the keyboard appears and disappears, I can&#8217;t get the animation to come out perfect. I spent a day or two over the holidays trying to figure it out and ended up going back to the UITableViewController.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.skylarcantu.com/blog/2009/09/24/dont-use-uitableviewcontroller-really/comment-page-1/#comment-127</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 29 Oct 2009 16:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.skylarcantu.com/blog/?p=258#comment-127</guid>
		<description>Thanks for this post. very insightful and ive often wondered the same reason for using a tableviewcontroller, when a viewcontroller is much easier to customize</description>
		<content:encoded><![CDATA[<p>Thanks for this post. very insightful and ive often wondered the same reason for using a tableviewcontroller, when a viewcontroller is much easier to customize</p>
]]></content:encoded>
	</item>
</channel>
</rss>
