• 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: resizing table view programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resizing table view programmatically


  • Subject: Re: resizing table view programmatically
  • From: Keary Suska <email@hidden>
  • Date: Thu, 25 Jun 2009 10:38:21 -0600

On Jun 25, 2009, at 9:47 AM, Daniel Child wrote:

I would like to resize a table view programmatically. I will be resizing based on the number of rows (which I know in advance), given a fixed row height which I set myself.

I tried resizing the window's contentView and that did not work. I know that a window, a scroll view, and a clip view are all involved, and sizing all of these manually seems like the wrong approach.

What is the easiest way to get the window and table to resize based on a calculated number of rows and fixed row height? Is there a simple approach that avoids resizing each individual view?

Just resize the window, as long as the scrollview resize flags are set to resize with the window. That should be all there is to it.


Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: 
 >resizing table view programmatically (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: IBPlugin embedding question
  • Next by Date: Re: IBPlugin embedding question
  • Previous by thread: resizing table view programmatically
  • Next by thread: Replacing chars in UITextField
  • Index(es):
    • Date
    • Thread