This question is locked. New answers and comments are not allowed.
Hi
I'm implementing NativeScript to be able to save an image to the Album, currently the Android part is complete and I'm struggle to make the iOS version work.
I'm trying to call UIImageWriteToSavedPhotosAlbum as
var functionReference = new interop.FunctionReference(function(result) {
result.success = true;
});
UIImageWriteToSavedPhotosAlbum(data, instance, interop.types.selector(interop.handleof(functionReference)), null);
But it doesn't work, so I had look in to the tests of the ios-runtime tests/NativeScriptTests/NativeScriptTests/app/Marshalling/FunctionPointerTests.js and noticed that it called a function namely functionWithSimpleFunctionPointer which is an objective c function.
Is there any way I can avoid any objective c and to make UIImageWriteToSavedPhotosAlbum working?
I'm implementing NativeScript to be able to save an image to the Album, currently the Android part is complete and I'm struggle to make the iOS version work.
I'm trying to call UIImageWriteToSavedPhotosAlbum as
var functionReference = new interop.FunctionReference(function(result) {
result.success = true;
});
UIImageWriteToSavedPhotosAlbum(data, instance, interop.types.selector(interop.handleof(functionReference)), null);
But it doesn't work, so I had look in to the tests of the ios-runtime tests/NativeScriptTests/NativeScriptTests/app/Marshalling/FunctionPointerTests.js and noticed that it called a function namely functionWithSimpleFunctionPointer which is an objective c function.
Is there any way I can avoid any objective c and to make UIImageWriteToSavedPhotosAlbum working?