Re: CALayer still has no constraints on iOS
Re: CALayer still has no constraints on iOS
- Subject: Re: CALayer still has no constraints on iOS
- From: Mark Aufflick <email@hidden>
- Date: Wed, 07 Nov 2012 14:19:44 +1100
And not even custom layout managers. I can imagine not having wanted to
support the constraint layout originally for performance reasons, but
custom layout managers are going to be exactly the same overhead as fully
custom code, but nicely abstracted and consistent.
--
Mark Aufflick
http://mark.aufflick.com/about/contact
http://pumptheory.com/about
On Wed, Oct 31, 2012 at 4:22 AM, Matt Neuburg <email@hidden> wrote:
> I find it odd that UIView on iOS now has the wonderful CALayoutConstraint
> system, but CALayer doesn't have anything analogous. This means that a
> sublayer - that is, a sublayer of a view's layer - just sits there like a
> bump on a log when the view is resized.
>
> To give an example, Apple has made it clear in the WWDC videos that they
> would like me to support rotation in table views. But let's say that part
> of how I was drawing my UITableViewCell was with sublayers. When we rotate
> and the cell gets wider, the sublayer doesn't get wider.
>
> Now, it's not as if I don't see any way out of this. I can probably pretty
> much do with subviews what I was doing with sublayers, and thus get all the
> layout constraint's yummy goodness. I'm just surprised that we still have
> no form of auto-resizing for sublayers, and I'm wondering if I'm missing
> something. m.
>
> --
> matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
> pantes anthropoi tou eidenai oregontai phusei
> Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
> RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
> TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
>
>
> _______________________________________________
>
> 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