| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ | 6 #define IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 @interface UILabel (CRUILabelAttributeUtils) | 10 @interface UILabel (CRUILabelAttributeUtils) |
| 11 // The height of the label. |
| 12 // Make sure to create a LabelObserver for this label and start observing before |
| 13 // setting this property. |
| 11 @property(nonatomic, assign, setter=cr_setLineHeight:) CGFloat cr_lineHeight; | 14 @property(nonatomic, assign, setter=cr_setLineHeight:) CGFloat cr_lineHeight; |
| 12 | 15 |
| 13 // Adjusts the line height of the receiver so that the lines will evenly f | |
| 14 - (void)cr_adjustLineHeightForMaximimumLines:(NSUInteger)maximumLines; | |
| 15 | |
| 16 @end | 16 @end |
| 17 | 17 |
| 18 #endif // IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ | 18 #endif // IOS_CHROME_BROWSER_UI_UTIL_CRUILABEL_ATTRIBUTEUTILS_H_ |
| OLD | NEW |