You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2020/10/22 07:17:48 UTC
[incubator-weex] branch master updated: [iOS] fix image show error
This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new 66b1302 [iOS] fix image show error
new fa3391c Merge pull request #3288 from jianhan-he/master
66b1302 is described below
commit 66b1302e3c278ff531bba2e170ece30d94869008
Author: linghe.lh <li...@alibaba-inc.com>
AuthorDate: Thu Oct 22 14:29:27 2020 +0800
[iOS] fix image show error
---
ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index b117791..08d3635 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -311,7 +311,7 @@ WX_EXPORT_METHOD(@selector(save:))
- (void)didFinishDrawingLayer:(BOOL)success {
if ([self isViewLoaded]) {
UIImage *image = ((UIImageView *)self.view).image;
- if (image && !_layer.contents) {
+ if (image) {
_layer.contents = (id)(image.CGImage);
}
}