2

Is there any way to change WKPickerItem title's font size.How to change it's title's font size.

Kevin Su
  • 33
  • 1
  • 5

1 Answers1

0

In case it was of WKInterfaceLabel class type you could import UIKit, sub-classify it and in the init put something like:

UIFont *font = [UIFont systemFontOfSize:16.0 weight:UIFontWeightUltraLight];
    NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
    NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:@"Ultra Light Label" attributes:attrsDictionary];
    [self.title setAttributedText:attrString];

But since the title is a NSString, and Watch 0S 2.0 is currently in beta, there is no way to change the WKPickerItem title's font size.

CarlosGz
  • 396
  • 2
  • 6