nativescript - 如何使用 imagepicker 选择 ios 图像并在 Nativescript 中显示
问题描述
我在 Nativescript 中使用 imagepicker https://github.com/NativeScript/nativescript-imagepicker在我的应用程序中选择和显示图像。这在使用 Android 时非常简单,但我不知道如何使用 IOS 来做到这一点。我在网上找到了一些例子,但我假设它们已经过时了,因为它们不起作用。
this.imagePicker.onSelectSingleTap().then(
(imageAsset: any) => {
if (!isAndroid) {
// What do I do here?
}
if (isAndroid) {
this.imgURL = imageAsset.android;
}
}
)
解决方案
推荐阅读
- javascript - 如何使用 rxjs 取消内部可观察计时器?
- laravel - Laravel 文件管理器 UniSharp 不正确的图像 URL
- python - 在测试用例中间设置robotframework teardown关键字
- qt - qml 主窗口背景渐变
- hibernate - 在 Hibernate 中使用 @Query 进行带参数的本机查询
- c++ - 返回字符串、浮点数或整数的 C++ 函数
- php - 从 WordPress 数据库中删除不必要的元表?
- php - 如何从我的数据库中选择一个值并与其他值匹配
- gsutil - gsutil rsync 仅匹配模式的文件
- android - 小吃店没有出现