A flashing(twinkling)tag for iOS. 一个 iOS 的会闪烁的标签。
Add pod 'HATwinklingTagView'
to your pod file.(Or drag these four files which in the HATwinklingTagView
folder to your project.)
Then type the following code.
NSArray *array = @[@"哇好美!",@"美翻了!",@"美美美!!!!"];
//init
HATwinklingTagView *tagView = [[HATwinklingTagView alloc]initWithWithArray:array andPoint:CGPointMake(30, 100)];
//tag text color(default is white color)
tagView.color = [UIColor whiteColor];
//add it to your view
[self.view addSubview:tagView];