ClearTextLabel
是一个创建带有透明文字标签的UILabel
子类。
-fobjc-arc
配置了ClearTextLabel)pod 'ClearTextLabel'
使用ClearTextLabel与使用常规UILabel一样简单
ClearTextLabel* objCTLbl = [[ClearTextLabel alloc] initWithFrame:CGRectMake(20, 100, 280, 368)];
objCTLbl.text = @"Can this be drawn with transparency ?";
[self.view addSubview:objCTLbl];
ClearTextLabel使用透明度绘制提供的文本。
Demo app includes the most basic regular example just for reference.