• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iOS] setting table style for root view controller of a navigation controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Jack Carbaugh <email@hidden>
  • Date: Wed, 1 Dec 2010 08:39:10 -0500

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@hidden
>>> http://www.appsandmore.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
>>
>> _______________________________________________
>>
>> 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
>

_______________________________________________

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

References: 
 >Re: [iOS] setting table style for root view controller of a navigation controller (From: Jack Carbaugh <email@hidden>)
 >Re: [iOS] setting table style for root view controller of a navigation controller (From: Roland King <email@hidden>)

  • Prev by Date: Re: [iOS] setting table style for root view controller of a navigation controller
  • Next by Date: Application crashing due to unicode characters in string
  • Previous by thread: Re: [iOS] setting table style for root view controller of a navigation controller
  • Next by thread: Re: [iOS] setting table style for root view controller of a navigation controller
  • Index(es):
    • Date
    • Thread