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:51 UTC

[13/22] incubator-weex git commit: * [ios] format code and log more information

* [ios] format code  and log more information


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c11cc537
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c11cc537
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c11cc537

Branch: refs/heads/0.14-dev
Commit: c11cc5371475208b6feaa6c0df1122af27cc21bb
Parents: cd00544
Author: acton393 <zh...@gmail.com>
Authored: Thu May 25 15:19:57 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu May 25 15:19:57 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c11cc537/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
index 7e391ef..16070bd 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m
@@ -281,7 +281,8 @@
             WXLogDebug(@"Insert section:%ld", (unsigned long)insertIndex);
             
             [UIView performWithoutAnimation:^{
-                 @try {
+                
+                @try {
                     [_tableView beginUpdates];
                     
                     [_completedSections insertObject:completedInsertSection atIndex:insertIndex];
@@ -297,11 +298,12 @@
                     }
                     
                     [_tableView endUpdates];
-                 } @catch (NSException *exception) {
-                     WXLog(@"%@ %@",NSStringFromSelector(_cmd), exception);
-                 } @finally {
-                     
-                 }
+                } @catch (NSException *exception) {
+                    WXLogError(@"list insert component occurs exception %@", exception);
+                } @finally {
+                     // nothing
+                }
+                
             }];
             
         }];