overboming/ZCAnimatedLabel
소개
세밀한 표시 및 사라짐 애니메이션을 지원하는 UILabel 대체 라이브러리입니다.
창작 및 미디어What you can do
- Rich text support (with NSAttributedString)
- Group aniamtion by character/word/line
- Customizable animation start delay for each text block
- Great performance, only changed area is redrawn
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalZCAnimatedLabel
UILabel-like view with easy to extend appear/disappear animation
Features
- Rich text support (with NSAttributedString)
- Group aniamtion by character/word/line
- Customizable animation start delay for each text block
- Great performance, only changed area is redrawn
- Optional layer-based implementation
- 3D/Geometry transform support (layer based only)
- iOS 5+ compatibility
Demo
- Default

- Fall

- Duang/Spring

- Flyin

- Focus

- Shapeshift

- Reveal

- Thrown

- Transparency

- Spin

- Dash

- More to come
How to use
ZCAnimatedLabel is available via CocoaPods. If you don't need all the effect subclasses, simply drag ZCAnimatedLabel.(h|m), ZCCoreTextLayout.(h|m) and ZCEasingUtil.(h|m) into your project and start customizing your own.
Subclassing
ZCAnimatedLabel has two modes: non-layer based and layer based. In the first mode, ZCAnimatedLabel is a flat UIView, every stage of animation is drawn using Core Graphics, you can customize redraw area for your animation for better performance. Following methods can be overriden:
- (void) textBlockAttributesInit: (ZCTextBlock *) textBlock;- (void) appearStateDrawingForRect: (CGRect) rect textBlock: (ZCTextBlock *) textBlock;- (void) disappearStateDrawingForRect: (CGRect) rect textBlock: (ZCTextBlock *) textBlock;- (CGRect) redrawAreaForRect: (CGRect) rect textBlock: (ZCTextBlock *) textBlock;
Second option is layer based, where each text block is a simple CALayer, 3D tranform is possible in this mode by setting layer's transform property, if redraw area is bigger and not too many text blocks, this can achive a performance gain. Set self.layerBased to YES and override following methods for customization:
- (void) textBlockAttributesInit: (ZCTextBlock *) textBlock;- (void) appearStateLayerChangesForTextBlock: (ZCTextBlock *) textBlock;- (void) disappearLayerStateChangesForTextBlock: (ZCTextBlock *) textBlock;
Todo
- Merge CALayers no longer animating into a single backing store and reuse CALayer for animating layers. (Even better performance for layerBased implementation)
- More Effects, possily glyph related ones
- Use core animation emmiter
Thanks to
LTMorhpingLabelfor heavy inspiration. If you likeZCAnimatedLabel, you should definitely this one out.AGGeometryKitfor arbitrary shape 3D transform code piece used inZCDashLabel
관련 프로젝트 살펴보기
불러오는 중…