- Create IBOutlet of your WKInterfaceLabel
- Create UIFont object
UIFont * labelFont = [UIFont fontWithName:@"Courier-Bold" size:8]; - Create NSAttributedString object
NSAttributedString *labelText = [[NSAttributedString alloc] initWithString : @"my Label string title" attributes : @{ NSKernAttributeName : @2.0, NSFontAttributeName : labelFont}]; - set attributedString to label
[self.label setAttributedText:labelText];
Tuesday, March 24, 2015
Subscribe to:
Post Comments (Atom)
This is really helpful! Thanks!
ReplyDelete