This is an automated email from the ASF dual-hosted git repository.

jianhan 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 f2786a1  [iOS] Fix the problem that background color should use 
[UIColor clearColor] instance when transparent. (#2943)
f2786a1 is described below

commit f2786a1842f7f52a2e7e23f9018f15eb07f8b99b
Author: wqyfavor <[email protected]>
AuthorDate: Sun Sep 29 14:01:00 2019 +0800

    [iOS] Fix the problem that background color should use [UIColor clearColor] 
instance when transparent. (#2943)
---
 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 117f2a4..4ad089f 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
@@ -440,7 +440,7 @@ WX_NUMBER_CONVERT(NSUInteger, unsignedIntegerValue)
     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 a < (0.5 / 255.f) ? [UIColor clearColor] : [UIColor colorWithRed:r 
green:g blue:b alpha:a];
 }
 
 + (uint32_t)RGBAColorFromUIColor:(UIColor*)color

Reply via email to