• 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
how to stack two views vertically (and resize properly)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to stack two views vertically (and resize properly)


  • Subject: how to stack two views vertically (and resize properly)
  • From: Wayne Shao <email@hidden>
  • Date: Thu, 21 Oct 2010 22:10:09 -0700

Hi,

I have this layout:   A container view C, with two sub-views in vertical
order: a Box B on the top, and a WebView W at the bottom.

Box B
-------------------
WebView W


In IB, I set the following resize property:

B: fixed top edge and fix height, take whole width of the parent
W: fixed bottom, fix top position, let it take the full size of both x and y
direction of the parent.

The problem: When the parent view C is resized to a very small height, the
WebView W's top edge goes over the Box on the top, making the Box invisible.
When C is resize to full height, the W still covers the Box.
I do not want the top edge of W to move.

The  question is: how do I let the WebView W's top edge stick with B's
bottom edge? (B fixed height, and W - variable height upon resize)

Thanks,
--
W. Shao
_______________________________________________

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

  • Follow-Ups:
    • Re: how to stack two views vertically (and resize properly)
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: [NSArray filteredAraryUsingPredicate:] performance?
  • Next by Date: Re: how to stack two views vertically (and resize properly)
  • Previous by thread: GestureRecognizer puzzle.
  • Next by thread: Re: how to stack two views vertically (and resize properly)
  • Index(es):
    • Date
    • Thread