You are correct ... my apologies ... you can set the table style in the XIB or when programmatically with the initWithFrame:style:
initWithFrame:style: On Dec 1, 2010, at 8:17 AM, Roland King wrote: > That property is read only. > > On 01-Dec-2010, at 8:23 PM, Jack Carbaugh wrote: > >> set the style property of the table view to UITableViewStyleGrouped >> >> controller.view.style = UITableViewStyleGrouped >> >> http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableView_Class/Reference/Reference.html >> >> On Dec 1, 2010, at 1:02 AM, Donald Hall wrote: >> >>> Hi all, >>> >>> I have a tab bar based iOS application. The controllers for each tab bar >>> item are UINavigationControllers, and the root view controllers for each >>> navigation controller are custom UITableViewControllers. >>> >>> What is the best way to set the style of the table views? I want at least >>> one of my table views to have a grouped style, but I can see no easy way of >>> specifying this. >>> >>> Here is what I have come up with so far. It seems rather convoluted. >>> >>> 1. In my app delegate in "didFinishLaunchingWithOptions" create an instance >>> of the custom table view controller using "initWithStyle" and the Grouped >>> style. >>> >>> 2. Create an instance of UINavigationController using >>> initWithRootViewController, specifying the controller created in step 1 as >>> the root view controller. >>> >>> 3. Alter the viewControllers property of my UITabBarController (the root >>> controller of the app) to include the navigation controller created in step >>> 2. >>> >>> Is there a simpler way that I am missing? I pored over the docs, but could >>> not find anything easier that the above. >>> >>> Thanks in advance for any assistance. >>> >>> Don >>> -- >>> Donald S. Hall, Ph.D. >>> Apps & More Software Design, Inc. >>> [email protected] >>> http://www.appsandmore.com >>> _______________________________________________ >>> >>> Cocoa-dev mailing list ([email protected]) >>> >>> 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: >>> http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com >>> >>> This email sent to [email protected] >> >> _______________________________________________ >> >> Cocoa-dev mailing list ([email protected]) >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org >> >> This email sent to [email protected] > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
