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 protected], 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 protected])

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 [email protected]

Reply via email to