Showing
1 changed file
with
1 additions
and
3 deletions
| @@ -787,7 +787,6 @@ | @@ -787,7 +787,6 @@ | ||
| 787 | 787 | ||
| 788 | + (CGSize)sizeOfString:(NSString *)text withWidth:(float)width font:(UIFont *)font | 788 | + (CGSize)sizeOfString:(NSString *)text withWidth:(float)width font:(UIFont *)font |
| 789 | { | 789 | { |
| 790 | - NSInteger ch; | ||
| 791 | CGSize size = CGSizeMake(width, MAXFLOAT); | 790 | CGSize size = CGSizeMake(width, MAXFLOAT); |
| 792 | 791 | ||
| 793 | if ([text respondsToSelector:@selector(boundingRectWithSize:options:attributes:context:)]) { | 792 | if ([text respondsToSelector:@selector(boundingRectWithSize:options:attributes:context:)]) { |
| @@ -802,8 +801,7 @@ | @@ -802,8 +801,7 @@ | ||
| 802 | size = [text sizeWithFont:font constrainedToSize:size lineBreakMode:NSLineBreakByCharWrapping]; | 801 | size = [text sizeWithFont:font constrainedToSize:size lineBreakMode:NSLineBreakByCharWrapping]; |
| 803 | #pragma clang diagnostic pop | 802 | #pragma clang diagnostic pop |
| 804 | } | 803 | } |
| 805 | - ch = size.height; | 804 | + |
| 806 | - | ||
| 807 | return size; | 805 | return size; |
| 808 | } | 806 | } |
| 809 | 807 |
-
Please register or login to post a comment