• 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
Correct way to provide constraints for views within views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct way to provide constraints for views within views


  • Subject: Correct way to provide constraints for views within views
  • From: William Squires <email@hidden>
  • Date: Tue, 01 Jul 2014 12:44:19 -0500

  Let's say I have an (OS X) application with one window. In it, I put a horizontal splitter so I now have two panes (sub-views). I now add a vertical splitter to the top such pane, further dividing it into two sub-panes (views), Each of these views has a view controller and xib, and in my applicationDidFinishLoading: I put the code to initialize my custom view controllers, and replace the existing (blank) views in these panes with the views obtained from the view controller's .view properties.
  I want to make sure there's a minimum vertical size (height) for the lower pane of the horizontal splitter, and for the two upper panes of the horizontal splitter. Likewise, I want a minimum width for each of the two top panes.
  Should these constraints be added in the xibs for each custom view (controller), or to the main views in MainMenu.xib?
  BTW: I'm "redoing" the Graphique app in the book, "Beginning OS X Lion Apps Development" by aPress, but using a target of 10.8, and I want to use the new constraints system (to get practice, mostly).
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Framework linking error
  • Next by Date: Xcode 5. You can zoom in a storyboard, but not in an XIB? Am I correct here?
  • Previous by thread: Re: Framework linking error
  • Next by thread: Xcode 5. You can zoom in a storyboard, but not in an XIB? Am I correct here?
  • Index(es):
    • Date
    • Thread