We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc948ac commit b72dcf6Copy full SHA for b72dcf6
NativeScript/runtime/ArgConverter.mm
@@ -249,7 +249,7 @@
249
if (type == BinaryTypeEncodingType::IdEncoding ||
250
type == BinaryTypeEncodingType::InterfaceDeclarationReference) {
251
std::string strValue = tns::ToString(isolate, value);
252
- id data = [NSString stringWithUTF8String:strValue.c_str()];
+ id data = [[NSString alloc] initWithBytes:strValue.c_str() length:strValue.length() encoding:NSUTF8StringEncoding];
253
*(CFTypeRef*)retValue = CFBridgingRetain(data);
254
return;
255
}
0 commit comments