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

Side by Side Diff: ui/ios/NSString+CrStringDrawing.h

Issue 497503004: Add NSString category for providing iOS6-style string drawing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TIL export_dependent_settings Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_IOS_NSSTRING_CR_STRING_DRAWING_H_
6 #define UI_IOS_NSSTRING_CR_STRING_DRAWING_H_
7
8 #import <UIKit/UIKit.h>
9
10 @interface NSString (CrStringDrawing)
11
12 // Returns the size of the string if it were to be rendered with the specified
13 // font on a single line.
14 // The following method provides an API like -sizeWithFont: which was deprecated
15 // in iOS 7 in favor of -sizeWithAttributes:.
16 - (CGSize)cr_sizeWithFont:(UIFont*)font;
17
18 @end
19
20 #endif // UI_IOS_NSSTRING_CR_STRING_DRAWING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698