12 - (void) postAttributedText:(NSString *)txt
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];