RQShineLabel

Secret app like text animation

  • 所有者: zipme/RQShineLabel
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

RQShineLabel

A UILabel subclass that lets you animate text similar to Secret app.

image

Installation

CocoaPods

RQShineLabel is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "RQShineLabel"

Manually

  1. Download and drop RQShineLabel.h and RQShineLabel.m in your project.
  2. Congratulations!

Usage

- (void)viewDidLoad
{
  self.shineLabel = [[RQShineLabel alloc] initWithFrame:CGRectMake(16, 16, 298, 300)];
  self.shineLabel.numberOfLines = 0;
  self.shineLabel.text = @"some text";
  self.shineLabel.backgroundColor = [UIColor clearColor];
  [self.shineLabel sizeToFit];
  self.shineLabel.center = self.view.center;
  [self.view addSubview:self.shineLabel];
}

- (void)viewDidAppear:(BOOL)animated
{
  [super viewDidAppear:animated];
  [self.shineLabel shine];
}

Other methods

fade in with completion block

- (void)shineWithCompletion:(void (^)())completion;

fade out

- (void)fadeOut

fade out with completion block

- (void)fadeOutWithCompletion:(void (^)())completion;

Requirements

iOS >= 6.0

Author

gk

License

RQShineLabel is available under the MIT license. See the LICENSE file for more info.

主要指標

概覽
名稱與所有者zipme/RQShineLabel
主編程語言Objective-C
編程語言Objective-C (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2014-05-07 14:32:53
推送於2023-12-25 18:38:44
最后一次提交2023-12-25 19:38:43
發布數6
最新版本名稱1.0.0 (發布於 2019-06-13 00:15:26)
第一版名稱0.1.0 (發布於 )
用户参与
星數2k
關注者數54
派生數220
提交數40
已啟用問題?
問題數17
打開的問題數8
拉請求數9
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?