feat:rename some code
This commit is contained in:
parent
856287e15f
commit
7d0ecfee52
@ -60,12 +60,12 @@ - (id)callNativeWithContextId:(NSString *)contextId module:(NSString *)module me
|
|||||||
void (^block)(void) = ^() {
|
void (^block)(void) = ^() {
|
||||||
__strong __typeof__(_self) self = _self;
|
__strong __typeof__(_self) self = _self;
|
||||||
@try {
|
@try {
|
||||||
for (int i = 2; i < methodSignature.numberOfArguments; i++) {
|
for (NSUInteger idx = 2; idx < methodSignature.numberOfArguments; idx++) {
|
||||||
if (i - 2 > [array count]) {
|
if (idx - 2 > [array count]) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
id args = [self createParamWithMethodName:array[i - 2] context:context callbackId:callbackId argument:argument];
|
id args = [self createParamWithMethodName:array[idx - 2] context:context callbackId:callbackId argument:argument];
|
||||||
[invocation setArgument:&args atIndex:i];
|
[invocation setArgument:&args atIndex:idx];
|
||||||
}
|
}
|
||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
} @catch (NSException *exception) {
|
} @catch (NSException *exception) {
|
||||||
|
Reference in New Issue
Block a user