From 8a1b19e0ebe608682227d0da15df81e9a94835af Mon Sep 17 00:00:00 2001 From: Valent Richie Date: Thu, 23 Jan 2014 12:21:17 +0800 Subject: [PATCH] Use dynamic text for the action sheet button --- .../Libraries/REDActionSheet/REDActionSheetButton.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/REDTweetbotActionSheet/Libraries/REDActionSheet/REDActionSheetButton.m b/REDTweetbotActionSheet/Libraries/REDActionSheet/REDActionSheetButton.m index c38473c..079e35d 100644 --- a/REDTweetbotActionSheet/Libraries/REDActionSheet/REDActionSheetButton.m +++ b/REDTweetbotActionSheet/Libraries/REDActionSheet/REDActionSheetButton.m @@ -35,7 +35,9 @@ - (instancetype)initWithTitle:(NSString *)title - (void)updateStyle { - self.titleLabel.font = [UIFont boldSystemFontOfSize:17.0]; + UIFontDescriptor*bodyFontDesciptor=[UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleBody]; + UIFontDescriptor*boldBodyFontDescriptor=[bodyFontDesciptor fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold]; + self.titleLabel.font=[UIFont fontWithDescriptor:boldBodyFontDescriptor size:0.0]; self.alpha = 0.98; if (self.highlighted)