• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CALayer still has no constraints on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer still has no constraints on iOS


  • Subject: CALayer still has no constraints on iOS
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 30 Oct 2012 10:22:26 -0700

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

  • Prev by Date: Re: iOS 6 changes in CATextLayer text drawing
  • Next by Date: Re: createDirectoryAtPath:withIntermediateDirectories:attributes:error: Returns NO when it exists
  • Previous by thread: Re: Cocoa-dev Digest, Vol 9, Issue 751
  • Next by thread: iOS always tells us that the user declined push notifications, even when that's BS.
  • Index(es):
    • Date
    • Thread