diff --git a/README.md b/README.md index 615070c..94a477c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ DSBridge-Android:https://github.com/wendux/DSBridge-Android //for asynchronous invocation - (NSString *) testAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL isComplete))handler { - handler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],true); + handler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],YES); } @end ``` diff --git a/dsbridgedemo/JsApiTest.m b/dsbridgedemo/JsApiTest.m index 2a91c6d..1948219 100644 --- a/dsbridgedemo/JsApiTest.m +++ b/dsbridgedemo/JsApiTest.m @@ -24,7 +24,7 @@ - (NSString *) testSyn:(NSDictionary *) args - (void) testAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler { - completionHandler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],true); + completionHandler([(NSString *)[args valueForKey:@"msg"] stringByAppendingString:@"[ asyn call]"],YES); } - (NSString *)testNoArgSyn:(NSDictionary *) args @@ -34,7 +34,7 @@ - (NSString *)testNoArgSyn:(NSDictionary *) args - ( void )testNoArgAsyn:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler { - completionHandler(@"testNoArgAsyn called [ asyn call]",true); + completionHandler(@"testNoArgAsyn called [ asyn call]",YES); } - ( void )callProgress:(NSDictionary *) args :(void (^)(NSString * _Nullable result,BOOL complete))completionHandler