Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.h

Issue 2828743002: LabelObserver is no longer retained by the label (Closed)
Patch Set: Address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/first_run/welcome_to_chrome_view.mm ('k') | ios/chrome/browser/ui/util/CRUILabel+AttributeUtils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698