Is there any way to change WKPickerItem title's font size.How to change it's title's font size.
Asked
Active
Viewed 377 times
1 Answers
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
-
1thanks for your reply, however it not works, no function "setAttributedText" for NSString type. – Kevin Su Aug 05 '15 at 08:13