#import <UILabel+Y5GradientFace.h>
Definition at line 13 of file UILabel+Y5GradientFace.h.
◆ postAttributedText:()
- (void) postAttributedText: |
|
(NSString *) |
txt |
|
Definition at line 12 of file UILabel+Y5GradientFace.m.
14 [
self setNumberOfLines:0];
16 [
self setText:@"err"];
17 }
else if ([
self respondsToSelector:
@selector(setAttributedText:)]) {
18 UIFont *herefont = [UIFont fontWithName:@"DamascusBold" size:12];
20 NSDictionary *attribs = @{
21 NSForegroundColorAttributeName:
self.textColor,
22 NSFontAttributeName: herefont
24 NSMutableAttributedString *attributedText =
25 [[NSMutableAttributedString alloc] initWithString:txt
27 [
self setAttributedText:attributedText];
31 [
self setTextAlignment:NSTextAlignmentCenter];
The documentation for this category was generated from the following files: