Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanton/layoutsublayersdemo
https://github.com/hanton/layoutsublayersdemo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hanton/layoutsublayersdemo
- Owner: hanton
- Created: 2015-01-12T14:01:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-12T14:15:03.000Z (almost 10 years ago)
- Last Synced: 2024-10-19T22:52:25.297Z (3 months ago)
- Language: Objective-C
- Size: 301 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A PR Demo for DAAttributedStringUtils
Need to add `[super layoutSublayers];` to `DAAttributedLabelBaseLayer-layoutSublayers` of `DAAttributedLabel.m`, or the text won't resize when rotating device.
Reference:
Programming in iOS 8
https://books.google.com/books?id=wLaVBQAAQBAJ&pg=PT161&lpg=PT161&dq=layoutSublayers+super&source=bl&ots=7tsw1NY1ET&sig=viF-J-xJiHV9CqgUo3NdF2bfCv0&hl=en&sa=X&ei=0MuzVKywMcOqggS2z4LgDA&ved=0CDIQ6AEwBjgK#v=onepage&q=layoutSublayers%20super&f=false"Don't forget to call [super layoutSubviews], as this can cause unexpected behavior in various UIKit classes."
http://stackoverflow.com/questions/2504151/calayers-didnt-get-resized-on-its-uiviews-bounds-change-whyAsyncDisplayKit
https://github.com/facebook/AsyncDisplayKit/blob/c1f7d9f78d721ab5d5fa590f7decb2bc97ec4d62/AsyncDisplayKit/Details/_ASDisplayLayer.mm