* [ios] clear original image when new src set
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/f87f25bc Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/f87f25bc Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/f87f25bc Branch: refs/heads/dev Commit: f87f25bce550e089ebbc9b682d2cbf8534c5340b Parents: ca7c085 Author: acton393 <zhangxing610...@gmail.com> Authored: Mon Sep 25 23:04:01 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Mon Sep 25 23:04:01 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f87f25bc/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m index b68f45a..90c29a1 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m @@ -340,6 +340,7 @@ WX_EXPORT_METHOD(@selector(save:)) if (![src isEqualToString:_imageSrc]) { _imageSrc = src; _imageDownloadFinish = NO; + ((UIImageView*)self.view).image = nil; [self updateImage]; } pthread_mutex_unlock(&(_imageSrcMutex));