Re: [iOS] setting table style for root view controller of a navigation controller
Re: [iOS] setting table style for root view controller of a navigation controller
- Subject: Re: [iOS] setting table style for root view controller of a navigation controller
- From: Matt Neuburg <email@hidden>
- Date: Thu, 2 Dec 2010 11:48:35 -0800
On Dec 2, 2010, at 11:33 AM, glenn andreas wrote:
> Actually, it does a number of things for you:
I didn't say it didn't do anything. I said it didn't do anything you couldn't easily do yourself.
> 1) It flashes the scroll bar correctly when the view appears
Which you can easily do by implementing viewDidAppear.
> 2) It can automatically deselect selected rows (in 3.2 and later)
Which you can easily do by implementing viewWillAppear.
> 3) Most importantly, it will handle dealing with keyboards showing up and covering part of the table view (and adjust the scroll/content inset), which can be a painful mess, especially trying to support both pre 3.2, and 3.2/4.x (since not only are the keyboard notifications different, but it deals with the view being presented in the variety of different ways - sheet, full screen, etc...)
Which you... uh... okay, you've got me there! :)
Nevertheless, UITableViewController is in many ways just annoying. It doesn't obey the UIViewController rule, which it should inherit, about what happens when you init it with a nil nibName. And if your view is not completely occupied by a table (as in my TidBITS News app, where there's a UILabel and a table), you *can't* use UITableViewController. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden