From 3a8a7ffd8fda70a1867b6e8c99f6e9007dd28adc Mon Sep 17 00:00:00 2001 From: "qianyuan.wqy" Date: Mon, 30 Sep 2019 16:11:22 +0800 Subject: [PATCH] Revert "[iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent. (#2942)" This reverts commit 2c169da9bf875c2864bd02fe07af61f17ad888fe. --- ios/sdk/WeexSDK/Sources/Utility/WXConvert.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m index 117f2a4200..6861b0873b 100644 --- a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m +++ b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m @@ -440,7 +440,7 @@ + (UIColor *)UIColorFromRGBA:(uint32_t)rgba g = g8 / 255.f; b = b8 / 255.f; a = a8 / 255.f; - return a < 0.5 ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a]; + return [UIColor colorWithRed:r green:g blue:b alpha:a]; } + (uint32_t)RGBAColorFromUIColor:(UIColor*)color