File tree Expand file tree Collapse file tree
Examples/Messenger-Shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77//
88
99#import " MessageTableViewCell.h"
10- #import " SLKTextView+SLKAdditions .h"
10+ #import " SLKUIConstants .h"
1111
1212@implementation MessageTableViewCell
1313
@@ -117,7 +117,7 @@ + (CGFloat)defaultFontSize
117117 CGFloat pointSize = 16.0 ;
118118
119119 NSString *contentSizeCategory = [[UIApplication sharedApplication ] preferredContentSizeCategory ];
120- pointSize += [SLKTextView pointSizeDifferenceForCategory: contentSizeCategory] ;
120+ pointSize += SLKPointSizeDifferenceForCategory ( contentSizeCategory) ;
121121
122122 return pointSize;
123123}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ inline static CGRect SLKRectInvert(CGRect rect)
5555 @param category A content size category constant string.
5656 @returns A float constant font size difference.
5757 */
58- CGFloat SLKPointSizeDifferenceForCategory (NSString * category )
58+ inline CGFloat SLKPointSizeDifferenceForCategory (NSString * category )
5959{
6060 if ([category isEqualToString :UIContentSizeCategoryExtraSmall ]) return -3.0 ;
6161 if ([category isEqualToString :UIContentSizeCategorySmall ]) return -2.0 ;
You can’t perform that action at this time.
0 commit comments