You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/05/25 08:38:56 UTC
[18/22] incubator-weex git commit: + [ios] update to method to check
blank
+ [ios] update to method to check blank
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/491da548
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/491da548
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/491da548
Branch: refs/heads/0.14-dev
Commit: 491da548ec4da503c5e6fab10efaeb96f46dc32c
Parents: 7f217f4
Author: 齐山 <su...@163.com>
Authored: Thu May 25 16:03:00 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Thu May 25 16:03:00 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Utility/WXUtility.h | 2 +-
ios/sdk/WeexSDK/Sources/Utility/WXUtility.m | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/491da548/ios/sdk/WeexSDK/Sources/Utility/WXUtility.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.h b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.h
index b96b080..2c8a7b4 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.h
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.h
@@ -22,8 +22,8 @@
#import "WXDefine.h"
#import "WXType.h"
#import "WXLog.h"
+#import "WXSDKInstance.h"
-@class WXSDKInstance;
// The default screen width which helps us to calculate the real size or scale in different devices.
static const CGFloat WXDefaultScreenWidth = 750.0;
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/491da548/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
index eb8a1de..e93462c 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
@@ -890,7 +890,7 @@ BOOL WXFloatGreaterThanWithPrecision(CGFloat a, CGFloat b ,double precision){
+ (void)customMonitorInfo:(WXSDKInstance *_Nullable)instance key:(NSString * _Nonnull)key value:(id _Nonnull)value
{
- if(!key || key.length == 0||!value||!instance){
+ if([self isBlankString:key]||!value||!instance){
return ;
}
if(!instance.userInfo){