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

Re: view problems


  • Subject: Re: view problems
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 20 Dec 2014 18:10:31 -0600

On Dec 20, 2014, at 2:08 PM, H Miersch <email@hidden> wrote:

> i have a window with a custom view in it. I add another view in code and then i add a couple of constraints to centre the new view in its superview. so far so good.
>
> if i DON'T call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on my subview, it appears, but the superview (and wit it the window) is reduced in size to the size of the subview, and i can't make the window bigger using the mouse.

You've shown the constraints for the size of the subview.  What are the constraints for centering it in its superview?  Is the superview the window's contentView?  If not, what are the constraints on the superview relative to _its_ superview?

Regards,
Ken


_______________________________________________

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: view problems
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: view problems
  • Next by Date: Re: view problems
  • Previous by thread: Re: view problems
  • Next by thread: Re: view problems
  • Index(es):
    • Date
    • Thread