Re: Problems with CAConstraint
Re: Problems with CAConstraint
- Subject: Re: Problems with CAConstraint
- From: Bill Dudney <email@hidden>
- Date: Wed, 20 Feb 2008 16:34:51 -0700
Hi Mani,
Can't tell from the short code snipit, but some thing to keep in mind
is that if you over constrain (3 of the 3 constraints possible on an
axis) you will get unpredictable results.
HTH,
-bd-
http://bill.dudney.net/roller/objc
On Feb 20, 2008, at 8:17 AM, Manfred Schwind wrote:
Hi,
I am trying to keep a sublayer quadratic and it's height (and width)
should be the height of it's superview.
When I do the following:
[subLayer addConstraint:[CAConstraint
constraintWithAttribute:kCAConstraintHeight
relativeTo:@"superlayer"
attribute:kCAConstraintHeight]];
The height is OK. But as soon as I try to adjust the width, the
sublayer disappears completely:
[subLayer addConstraint:[CAConstraint
constraintWithAttribute:kCAConstraintWidth
relativeTo:@"superlayer"
attribute:kCAConstraintHeight]];
Any ideas why?
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.
_______________________________________________
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
_______________________________________________
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