From 7d0ecfee5231ac0a366cbe9775d1cd750d406824 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 18 Nov 2019 11:45:48 +0800 Subject: [PATCH] feat:rename some code --- iOS/Pod/Classes/Extension/DoricBridgeExtension.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iOS/Pod/Classes/Extension/DoricBridgeExtension.m b/iOS/Pod/Classes/Extension/DoricBridgeExtension.m index 3434aa07..e0aaed81 100644 --- a/iOS/Pod/Classes/Extension/DoricBridgeExtension.m +++ b/iOS/Pod/Classes/Extension/DoricBridgeExtension.m @@ -60,12 +60,12 @@ - (id)callNativeWithContextId:(NSString *)contextId module:(NSString *)module me void (^block)(void) = ^() { __strong __typeof__(_self) self = _self; @try { - for (int i = 2; i < methodSignature.numberOfArguments; i++) { - if (i - 2 > [array count]) { + for (NSUInteger idx = 2; idx < methodSignature.numberOfArguments; idx++) { + if (idx - 2 > [array count]) { break; } - id args = [self createParamWithMethodName:array[i - 2] context:context callbackId:callbackId argument:argument]; - [invocation setArgument:&args atIndex:i]; + id args = [self createParamWithMethodName:array[idx - 2] context:context callbackId:callbackId argument:argument]; + [invocation setArgument:&args atIndex:idx]; } [invocation invoke]; } @catch (NSException *exception) {