Re: view problems
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