2016-08-05 19:29:19 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2016-08-05 19:29:19 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-08-05 19:29:19 +00:00
|
|
|
*/
|
|
|
|
|
2018-01-30 21:31:04 +00:00
|
|
|
#import "RCTAssert.h"
|
2016-08-05 19:29:19 +00:00
|
|
|
#import "RCTFont.h"
|
2016-08-09 15:42:58 +00:00
|
|
|
#import "RCTLog.h"
|
|
|
|
|
|
|
|
#import <CoreText/CoreText.h>
|
2016-08-05 19:29:19 +00:00
|
|
|
|
2016-08-05 19:29:20 +00:00
|
|
|
#import <mutex>
|
|
|
|
|
2016-08-05 19:29:19 +00:00
|
|
|
typedef CGFloat RCTFontWeight;
|
|
|
|
static RCTFontWeight weightOfFont(UIFont *font)
|
|
|
|
{
|
2017-09-07 06:43:17 +00:00
|
|
|
static NSArray *fontNames;
|
|
|
|
static NSArray *fontWeights;
|
2016-08-05 19:29:19 +00:00
|
|
|
static dispatch_once_t onceToken;
|
|
|
|
dispatch_once(&onceToken, ^{
|
2017-09-07 06:43:17 +00:00
|
|
|
// We use two arrays instead of one map because
|
|
|
|
// the order is important for suffix matching.
|
|
|
|
fontNames = @[
|
|
|
|
@"normal",
|
|
|
|
@"ultralight",
|
|
|
|
@"thin",
|
|
|
|
@"light",
|
|
|
|
@"regular",
|
|
|
|
@"medium",
|
|
|
|
@"semibold",
|
2017-09-09 05:48:36 +00:00
|
|
|
@"demibold",
|
2017-10-23 18:18:31 +00:00
|
|
|
@"extrabold",
|
2017-09-07 06:43:17 +00:00
|
|
|
@"bold",
|
|
|
|
@"heavy",
|
|
|
|
@"black"
|
|
|
|
];
|
|
|
|
fontWeights = @[
|
|
|
|
@(UIFontWeightRegular),
|
|
|
|
@(UIFontWeightUltraLight),
|
|
|
|
@(UIFontWeightThin),
|
|
|
|
@(UIFontWeightLight),
|
|
|
|
@(UIFontWeightRegular),
|
|
|
|
@(UIFontWeightMedium),
|
|
|
|
@(UIFontWeightSemibold),
|
2017-09-09 05:48:36 +00:00
|
|
|
@(UIFontWeightSemibold),
|
2017-10-23 18:18:31 +00:00
|
|
|
@(UIFontWeightHeavy),
|
2017-09-07 06:43:17 +00:00
|
|
|
@(UIFontWeightBold),
|
|
|
|
@(UIFontWeightHeavy),
|
|
|
|
@(UIFontWeightBlack)
|
|
|
|
];
|
2016-08-05 19:29:19 +00:00
|
|
|
});
|
|
|
|
|
2017-09-07 06:43:17 +00:00
|
|
|
for (NSInteger i = 0; i < fontNames.count; i++) {
|
|
|
|
if ([font.fontName.lowercaseString hasSuffix:fontNames[i]]) {
|
|
|
|
return (RCTFontWeight)[fontWeights[i] doubleValue];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-24 15:17:50 +00:00
|
|
|
|
|
|
|
NSDictionary *traits = [font.fontDescriptor objectForKey:UIFontDescriptorTraitsAttribute];
|
2017-09-07 06:43:17 +00:00
|
|
|
return (RCTFontWeight)[traits[UIFontWeightTrait] doubleValue];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL isItalicFont(UIFont *font)
|
|
|
|
{
|
|
|
|
NSDictionary *traits = [font.fontDescriptor objectForKey:UIFontDescriptorTraitsAttribute];
|
|
|
|
UIFontDescriptorSymbolicTraits symbolicTraits = [traits[UIFontSymbolicTrait] unsignedIntValue];
|
|
|
|
return (symbolicTraits & UIFontDescriptorTraitItalic) != 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL isCondensedFont(UIFont *font)
|
|
|
|
{
|
|
|
|
NSDictionary *traits = [font.fontDescriptor objectForKey:UIFontDescriptorTraitsAttribute];
|
|
|
|
UIFontDescriptorSymbolicTraits symbolicTraits = [traits[UIFontSymbolicTrait] unsignedIntValue];
|
|
|
|
return (symbolicTraits & UIFontDescriptorTraitCondensed) != 0;
|
|
|
|
}
|
|
|
|
|
2018-01-30 21:31:04 +00:00
|
|
|
static RCTFontHandler defaultFontHandler;
|
|
|
|
|
|
|
|
void RCTSetDefaultFontHandler(RCTFontHandler handler) {
|
|
|
|
defaultFontHandler = handler;
|
|
|
|
}
|
|
|
|
|
2018-02-16 20:08:59 +00:00
|
|
|
BOOL RCTHasFontHandlerSet() {
|
|
|
|
return defaultFontHandler != nil;
|
|
|
|
}
|
|
|
|
|
2018-01-30 21:31:04 +00:00
|
|
|
// We pass a string description of the font weight to the defaultFontHandler because UIFontWeight
|
|
|
|
// is not defined pre-iOS 8.2.
|
|
|
|
// Furthermore, UIFontWeight's are lossy floats, so we must use an inexact compare to figure out
|
|
|
|
// which one we actually have.
|
|
|
|
static inline BOOL CompareFontWeights(UIFontWeight firstWeight, UIFontWeight secondWeight) {
|
|
|
|
#if CGFLOAT_IS_DOUBLE
|
|
|
|
return fabs(firstWeight - secondWeight) < 0.01;
|
|
|
|
#else
|
|
|
|
return fabsf(firstWeight - secondWeight) < 0.01;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static NSString *FontWeightDescriptionFromUIFontWeight(UIFontWeight fontWeight)
|
|
|
|
{
|
|
|
|
if (CompareFontWeights(fontWeight, UIFontWeightUltraLight)) {
|
|
|
|
return @"ultralight";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightThin)) {
|
|
|
|
return @"thin";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightLight)) {
|
|
|
|
return @"light";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightRegular)) {
|
|
|
|
return @"regular";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightMedium)) {
|
|
|
|
return @"medium";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightSemibold)) {
|
|
|
|
return @"semibold";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightBold)) {
|
|
|
|
return @"bold";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightHeavy)) {
|
|
|
|
return @"heavy";
|
|
|
|
} else if (CompareFontWeights(fontWeight, UIFontWeightBlack)) {
|
|
|
|
return @"black";
|
|
|
|
}
|
|
|
|
RCTAssert(NO, @"Unknown UIFontWeight passed in: %f", fontWeight);
|
|
|
|
return @"regular";
|
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:20 +00:00
|
|
|
static UIFont *cachedSystemFont(CGFloat size, RCTFontWeight weight)
|
|
|
|
{
|
|
|
|
static NSCache *fontCache;
|
|
|
|
static std::mutex fontCacheMutex;
|
|
|
|
|
|
|
|
NSString *cacheKey = [NSString stringWithFormat:@"%.1f/%.2f", size, weight];
|
|
|
|
UIFont *font;
|
|
|
|
{
|
|
|
|
std::lock_guard<std::mutex> lock(fontCacheMutex);
|
|
|
|
if (!fontCache) {
|
|
|
|
fontCache = [NSCache new];
|
|
|
|
}
|
|
|
|
font = [fontCache objectForKey:cacheKey];
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!font) {
|
2018-01-30 21:31:04 +00:00
|
|
|
if (defaultFontHandler) {
|
|
|
|
NSString *fontWeightDescription = FontWeightDescriptionFromUIFontWeight(weight);
|
|
|
|
font = defaultFontHandler(size, fontWeightDescription);
|
|
|
|
} else if ([UIFont respondsToSelector:@selector(systemFontOfSize:weight:)]) {
|
|
|
|
// Only supported on iOS8.2 and above
|
2016-08-05 19:29:20 +00:00
|
|
|
font = [UIFont systemFontOfSize:size weight:weight];
|
|
|
|
} else {
|
|
|
|
if (weight >= UIFontWeightBold) {
|
|
|
|
font = [UIFont boldSystemFontOfSize:size];
|
|
|
|
} else if (weight >= UIFontWeightMedium) {
|
|
|
|
font = [UIFont fontWithName:@"HelveticaNeue-Medium" size:size];
|
|
|
|
} else if (weight <= UIFontWeightLight) {
|
|
|
|
font = [UIFont fontWithName:@"HelveticaNeue-Light" size:size];
|
|
|
|
} else {
|
|
|
|
font = [UIFont systemFontOfSize:size];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
std::lock_guard<std::mutex> lock(fontCacheMutex);
|
|
|
|
[fontCache setObject:font forKey:cacheKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return font;
|
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:19 +00:00
|
|
|
@implementation RCTConvert (RCTFont)
|
|
|
|
|
|
|
|
+ (UIFont *)UIFont:(id)json
|
|
|
|
{
|
|
|
|
json = [self NSDictionary:json];
|
|
|
|
return [RCTFont updateFont:nil
|
2016-08-05 19:29:21 +00:00
|
|
|
withFamily:[RCTConvert NSString:json[@"fontFamily"]]
|
|
|
|
size:[RCTConvert NSNumber:json[@"fontSize"]]
|
|
|
|
weight:[RCTConvert NSString:json[@"fontWeight"]]
|
|
|
|
style:[RCTConvert NSString:json[@"fontStyle"]]
|
2016-08-09 15:42:58 +00:00
|
|
|
variant:[RCTConvert NSStringArray:json[@"fontVariant"]]
|
2016-08-05 19:29:19 +00:00
|
|
|
scaleMultiplier:1];
|
|
|
|
}
|
|
|
|
|
|
|
|
RCT_ENUM_CONVERTER(RCTFontWeight, (@{
|
|
|
|
@"normal": @(UIFontWeightRegular),
|
|
|
|
@"bold": @(UIFontWeightBold),
|
|
|
|
@"100": @(UIFontWeightUltraLight),
|
|
|
|
@"200": @(UIFontWeightThin),
|
|
|
|
@"300": @(UIFontWeightLight),
|
|
|
|
@"400": @(UIFontWeightRegular),
|
|
|
|
@"500": @(UIFontWeightMedium),
|
|
|
|
@"600": @(UIFontWeightSemibold),
|
|
|
|
@"700": @(UIFontWeightBold),
|
|
|
|
@"800": @(UIFontWeightHeavy),
|
|
|
|
@"900": @(UIFontWeightBlack),
|
|
|
|
}), UIFontWeightRegular, doubleValue)
|
|
|
|
|
|
|
|
typedef BOOL RCTFontStyle;
|
|
|
|
RCT_ENUM_CONVERTER(RCTFontStyle, (@{
|
|
|
|
@"normal": @NO,
|
|
|
|
@"italic": @YES,
|
|
|
|
@"oblique": @YES,
|
|
|
|
}), NO, boolValue)
|
|
|
|
|
2016-08-09 15:42:58 +00:00
|
|
|
typedef NSDictionary RCTFontVariantDescriptor;
|
|
|
|
+ (RCTFontVariantDescriptor *)RCTFontVariantDescriptor:(id)json
|
|
|
|
{
|
|
|
|
static NSDictionary *mapping;
|
|
|
|
static dispatch_once_t onceToken;
|
|
|
|
dispatch_once(&onceToken, ^{
|
|
|
|
mapping = @{
|
|
|
|
@"small-caps": @{
|
|
|
|
UIFontFeatureTypeIdentifierKey: @(kLowerCaseType),
|
|
|
|
UIFontFeatureSelectorIdentifierKey: @(kLowerCaseSmallCapsSelector),
|
|
|
|
},
|
|
|
|
@"oldstyle-nums": @{
|
|
|
|
UIFontFeatureTypeIdentifierKey: @(kNumberCaseType),
|
|
|
|
UIFontFeatureSelectorIdentifierKey: @(kLowerCaseNumbersSelector),
|
|
|
|
},
|
|
|
|
@"lining-nums": @{
|
|
|
|
UIFontFeatureTypeIdentifierKey: @(kNumberCaseType),
|
|
|
|
UIFontFeatureSelectorIdentifierKey: @(kUpperCaseNumbersSelector),
|
|
|
|
},
|
|
|
|
@"tabular-nums": @{
|
|
|
|
UIFontFeatureTypeIdentifierKey: @(kNumberSpacingType),
|
|
|
|
UIFontFeatureSelectorIdentifierKey: @(kMonospacedNumbersSelector),
|
|
|
|
},
|
|
|
|
@"proportional-nums": @{
|
|
|
|
UIFontFeatureTypeIdentifierKey: @(kNumberSpacingType),
|
|
|
|
UIFontFeatureSelectorIdentifierKey: @(kProportionalNumbersSelector),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
});
|
|
|
|
RCTFontVariantDescriptor *value = mapping[json];
|
|
|
|
if (RCT_DEBUG && !value && [json description].length > 0) {
|
|
|
|
RCTLogError(@"Invalid RCTFontVariantDescriptor '%@'. should be one of: %@", json,
|
|
|
|
[[mapping allKeys] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]);
|
|
|
|
}
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
RCT_ARRAY_CONVERTER(RCTFontVariantDescriptor)
|
|
|
|
|
2016-08-05 19:29:19 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation RCTFont
|
|
|
|
|
|
|
|
+ (UIFont *)updateFont:(UIFont *)font
|
2016-08-05 19:29:21 +00:00
|
|
|
withFamily:(NSString *)family
|
|
|
|
size:(NSNumber *)size
|
|
|
|
weight:(NSString *)weight
|
|
|
|
style:(NSString *)style
|
2016-08-09 15:42:58 +00:00
|
|
|
variant:(NSArray<RCTFontVariantDescriptor *> *)variant
|
2016-08-05 19:29:19 +00:00
|
|
|
scaleMultiplier:(CGFloat)scaleMultiplier
|
|
|
|
{
|
|
|
|
// Defaults
|
|
|
|
static NSString *defaultFontFamily;
|
|
|
|
static dispatch_once_t onceToken;
|
|
|
|
dispatch_once(&onceToken, ^{
|
|
|
|
defaultFontFamily = [UIFont systemFontOfSize:14].familyName;
|
|
|
|
});
|
|
|
|
const RCTFontWeight defaultFontWeight = UIFontWeightRegular;
|
|
|
|
const CGFloat defaultFontSize = 14;
|
|
|
|
|
|
|
|
// Initialize properties to defaults
|
|
|
|
CGFloat fontSize = defaultFontSize;
|
|
|
|
RCTFontWeight fontWeight = defaultFontWeight;
|
|
|
|
NSString *familyName = defaultFontFamily;
|
|
|
|
BOOL isItalic = NO;
|
|
|
|
BOOL isCondensed = NO;
|
|
|
|
|
|
|
|
if (font) {
|
|
|
|
familyName = font.familyName ?: defaultFontFamily;
|
|
|
|
fontSize = font.pointSize ?: defaultFontSize;
|
|
|
|
fontWeight = weightOfFont(font);
|
|
|
|
isItalic = isItalicFont(font);
|
|
|
|
isCondensed = isCondensedFont(font);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get font attributes
|
|
|
|
fontSize = [RCTConvert CGFloat:size] ?: fontSize;
|
|
|
|
if (scaleMultiplier > 0.0 && scaleMultiplier != 1.0) {
|
|
|
|
fontSize = round(fontSize * scaleMultiplier);
|
|
|
|
}
|
|
|
|
familyName = [RCTConvert NSString:family] ?: familyName;
|
|
|
|
isItalic = style ? [RCTConvert RCTFontStyle:style] : isItalic;
|
|
|
|
fontWeight = weight ? [RCTConvert RCTFontWeight:weight] : fontWeight;
|
|
|
|
|
2016-08-09 15:42:58 +00:00
|
|
|
BOOL didFindFont = NO;
|
|
|
|
|
2016-08-05 19:29:19 +00:00
|
|
|
// Handle system font as special case. This ensures that we preserve
|
|
|
|
// the specific metrics of the standard system font as closely as possible.
|
|
|
|
if ([familyName isEqual:defaultFontFamily] || [familyName isEqualToString:@"System"]) {
|
2016-08-05 19:29:20 +00:00
|
|
|
font = cachedSystemFont(fontSize, fontWeight);
|
|
|
|
if (font) {
|
2016-08-09 15:42:58 +00:00
|
|
|
didFindFont = YES;
|
|
|
|
|
2016-08-05 19:29:19 +00:00
|
|
|
if (isItalic || isCondensed) {
|
|
|
|
UIFontDescriptor *fontDescriptor = [font fontDescriptor];
|
|
|
|
UIFontDescriptorSymbolicTraits symbolicTraits = fontDescriptor.symbolicTraits;
|
|
|
|
if (isItalic) {
|
|
|
|
symbolicTraits |= UIFontDescriptorTraitItalic;
|
|
|
|
}
|
|
|
|
if (isCondensed) {
|
|
|
|
symbolicTraits |= UIFontDescriptorTraitCondensed;
|
|
|
|
}
|
|
|
|
fontDescriptor = [fontDescriptor fontDescriptorWithSymbolicTraits:symbolicTraits];
|
|
|
|
font = [UIFont fontWithDescriptor:fontDescriptor size:fontSize];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Gracefully handle being given a font name rather than font family, for
|
|
|
|
// example: "Helvetica Light Oblique" rather than just "Helvetica".
|
2016-08-09 15:42:58 +00:00
|
|
|
if (!didFindFont && [UIFont fontNamesForFamilyName:familyName].count == 0) {
|
2016-08-05 19:29:19 +00:00
|
|
|
font = [UIFont fontWithName:familyName size:fontSize];
|
|
|
|
if (font) {
|
|
|
|
// It's actually a font name, not a font family name,
|
|
|
|
// but we'll do what was meant, not what was said.
|
|
|
|
familyName = font.familyName;
|
|
|
|
fontWeight = weight ? fontWeight : weightOfFont(font);
|
|
|
|
isItalic = style ? isItalic : isItalicFont(font);
|
|
|
|
isCondensed = isCondensedFont(font);
|
|
|
|
} else {
|
|
|
|
// Not a valid font or family
|
|
|
|
RCTLogError(@"Unrecognized font family '%@'", familyName);
|
|
|
|
if ([UIFont respondsToSelector:@selector(systemFontOfSize:weight:)]) {
|
|
|
|
font = [UIFont systemFontOfSize:fontSize weight:fontWeight];
|
|
|
|
} else if (fontWeight > UIFontWeightRegular) {
|
|
|
|
font = [UIFont boldSystemFontOfSize:fontSize];
|
|
|
|
} else {
|
|
|
|
font = [UIFont systemFontOfSize:fontSize];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get the closest font that matches the given weight for the fontFamily
|
|
|
|
CGFloat closestWeight = INFINITY;
|
|
|
|
for (NSString *name in [UIFont fontNamesForFamilyName:familyName]) {
|
|
|
|
UIFont *match = [UIFont fontWithName:name size:fontSize];
|
|
|
|
if (isItalic == isItalicFont(match) &&
|
|
|
|
isCondensed == isCondensedFont(match)) {
|
|
|
|
CGFloat testWeight = weightOfFont(match);
|
|
|
|
if (ABS(testWeight - fontWeight) < ABS(closestWeight - fontWeight)) {
|
2016-08-09 15:42:58 +00:00
|
|
|
font = match;
|
2016-08-05 19:29:19 +00:00
|
|
|
closestWeight = testWeight;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-08 01:09:52 +00:00
|
|
|
// If we still don't have a match at least return the first font in the fontFamily
|
|
|
|
// This is to support built-in font Zapfino and other custom single font families like Impact
|
|
|
|
if (!font) {
|
|
|
|
NSArray *names = [UIFont fontNamesForFamilyName:familyName];
|
|
|
|
if (names.count > 0) {
|
|
|
|
font = [UIFont fontWithName:names[0] size:fontSize];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-09 15:42:58 +00:00
|
|
|
// Apply font variants to font object
|
|
|
|
if (variant) {
|
|
|
|
NSArray *fontFeatures = [RCTConvert RCTFontVariantDescriptorArray:variant];
|
|
|
|
UIFontDescriptor *fontDescriptor = [font.fontDescriptor fontDescriptorByAddingAttributes:@{
|
|
|
|
UIFontDescriptorFeatureSettingsAttribute: fontFeatures
|
|
|
|
}];
|
|
|
|
font = [UIFont fontWithDescriptor:fontDescriptor size:fontSize];
|
|
|
|
}
|
|
|
|
|
|
|
|
return font;
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:21 +00:00
|
|
|
+ (UIFont *)updateFont:(UIFont *)font withFamily:(NSString *)family
|
2016-08-05 19:29:19 +00:00
|
|
|
{
|
2016-08-09 15:42:58 +00:00
|
|
|
return [self updateFont:font withFamily:family size:nil weight:nil style:nil variant:nil scaleMultiplier:1];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:21 +00:00
|
|
|
+ (UIFont *)updateFont:(UIFont *)font withSize:(NSNumber *)size
|
2016-08-05 19:29:19 +00:00
|
|
|
{
|
2016-08-09 15:42:58 +00:00
|
|
|
return [self updateFont:font withFamily:nil size:size weight:nil style:nil variant:nil scaleMultiplier:1];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:21 +00:00
|
|
|
+ (UIFont *)updateFont:(UIFont *)font withWeight:(NSString *)weight
|
2016-08-05 19:29:19 +00:00
|
|
|
{
|
2016-08-09 15:42:58 +00:00
|
|
|
return [self updateFont:font withFamily:nil size:nil weight:weight style:nil variant:nil scaleMultiplier:1];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
2016-08-05 19:29:21 +00:00
|
|
|
+ (UIFont *)updateFont:(UIFont *)font withStyle:(NSString *)style
|
2016-08-05 19:29:19 +00:00
|
|
|
{
|
2016-08-09 15:42:58 +00:00
|
|
|
return [self updateFont:font withFamily:nil size:nil weight:nil style:style variant:nil scaleMultiplier:1];
|
2016-08-05 19:29:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|