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 <m...@tidbits.com> 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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/mark-cocoa%40aufflick.com
>
> This email sent to mark-co...@aufflick.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to