You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/22 02:00:10 UTC
[37/50] incubator-weex git commit: * [ios] fix compiler complain
* [ios] fix compiler complain
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/29b04648
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/29b04648
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/29b04648
Branch: refs/heads/0.12-dev
Commit: 29b046483bbcd57466347839f1fe86cba0123ae4
Parents: b3aa98d
Author: acton393 <zh...@gmail.com>
Authored: Mon Mar 20 12:03:02 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Mar 20 12:03:02 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Utility/WXUtility.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/29b04648/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
index 443595a..19fe04c 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
@@ -353,7 +353,7 @@ static BOOL WXNotStat;
}
NSArray *descriptors = (__bridge_transfer NSArray *)CTFontManagerCreateFontDescriptorsFromURL(fontURL);
// length of descriptors here will be only one.
- for (NSFontDescriptor *desc in descriptors) {
+ for (UIFontDescriptor *desc in descriptors) {
font = [UIFont fontWithDescriptor:desc size:fontSize];
}
CFRelease(fontURL);