You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/06/22 09:46:57 UTC

[5/8] incubator-weex git commit: * [ios] add mutable copy for text attributedString

* [ios] add mutable copy for text attributedString


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e5e22813
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e5e22813
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e5e22813

Branch: refs/heads/0.15-dev
Commit: e5e228137bc819cd301ae58ecec7ee02308a9079
Parents: 5f6ca9e
Author: acton393 <zh...@gmail.com>
Authored: Thu Jun 22 14:46:26 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu Jun 22 14:46:26 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e5e22813/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index 72b4052..a67d829 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -352,7 +352,7 @@ do {\
     if (!_ctAttributedString) {
         _ctAttributedString = [self buildCTAttributeString];
     }
-    return _ctAttributedString;
+    return [_ctAttributedString mutableCopy];
 }
 
 - (CTFramesetterRef)ctFramesetterRef