我已经构建了一个Ionic2应用程序,我目前正在尝试改进用户体验.为此,我收到了一些反馈,让我想到是否有办法
<ion-select>
<ion-option>
</ion-option>
</ion-select>
Run Code Online (Sandbox Code Playgroud)
这在敲了几下,会给我输出直线距离,而不是等待用户对当前出现的"OK'and'按下CANCEL’按钮,离子动作片(http://ionicframework.com/docs/v2/ api/components/select/Select /)默认使用.
任何建议将不胜感激!:)
编辑:
正如@sebaferrreras所说,
如果选项数超过6,即使传递了动作表,它也将使用警报界面.
所以,如果你需要使用超过6个选项,你将不得不找到,因为就目前而言,这个功能是一种解决方案不 列出下Ionic2文档.
我试图在ios上设置Segment组件的样式,就像我的一个ionic2项目中的Material Design上的Segment的默认样式一样.
任何人都可以帮助提供理想的方法吗?
我想知道如何回到appComponent使用选项卡时定义的rootPage .setRoot方法无法正常工作.在标签页中使用它时,不会清除导航堆栈.在"主页"上,后退按钮可见,而不是导航切换,并显示选项卡的标题.
默认情况下,页面会被缓存并留在DOM中,如果它们被导航离开但仍然在导航堆栈中(例如,push()上的退出页面).从导航堆栈中删除它们时会被破坏(在pop()或setRoot()上).
上面的陈述让我期望当我使用setRoot页面时从缓存中清除.当它在普通页面中使用但在选项卡中不可用时,这似乎是正确的.
在选项卡页面的类中,有一个函数可以在单击按钮时将根页面设置为home.
goToHome() {
this.navCtrl.setRoot(HomePage);
}
Run Code Online (Sandbox Code Playgroud)
如何确保当我们返回到homePage时,没有后退按钮,并且使用了组件的HTML模板中可用的主页标题.
当离子2还处于测试阶段时,我已经开始研究视频会议混合应用了.我在离子1中开发了它,并进行了一些调整以使其工作.现在使用离子3和角4,我正在努力为我的离子应用程序找到官方支持的WebRTC cordova插件.有没有人知道插件是否会很快获得官方支持?如果没有,最好的选择是什么?多谢你们!
最近我将Ionic2 CLI更新为Ionic3 CLI,但我面临着构建问题的问题.
这是因为cordova-plugin-facebook4没有放入正确的条目资源值文件.
控制台上的错误如下:
:app:processDebugResources
AndroidManifest.xml:68: AAPT: error: resource string/fb_app_id (aka com.myapp.ionic3:string/fb_app_id) not found.
AndroidManifest.xml:71: AAPT: error: resource string/fb_app_name (aka com.myapp.ionic3:string/fb_app_name) not found.
error: failed processing manifest.
Run Code Online (Sandbox Code Playgroud)
系统信息如下:
ionic --version
3.19.1
cordova --version
8.0.0
node --version
v9.4.0
npm --version
5.6.0
gradle --version
------------------------------------------------------------
Gradle 4.4.1
------------------------------------------------------------
Build time: 2017-12-20 15:45:23 UTC
Revision: 10ed9dc355dc39f6307cc98fbd8cea314bdd381c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_111 (Oracle Corporation 25.111-b14)
OS: Mac OS X 10.13.2 x86_64
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个问题.
我正在尝试构建我的 ionic 3 应用程序并在我的设备上部署和实时重新加载,因此我正在尝试以下命令:
ionic cordova run ios --device --prod -lcs
Run Code Online (Sandbox Code Playgroud)
但运行该命令后,我收到以下错误:
error: exportArchive: No profiles for 'io.ionic.starter' were found
Run Code Online (Sandbox Code Playgroud)
和
"No profiles for 'io.ionic.starter' were found" UserInfo={NSLocalizedDescription=No profiles for 'io.ionic.starter' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
Run Code Online (Sandbox Code Playgroud)
它说To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.但是在科尔多瓦怎么样?
一些额外的错误输出。正如您在下面看到的,首先Archive Succeeded但后来失败了。
** ARCHIVE SUCCEEDED ** …Run Code Online (Sandbox Code Playgroud) 我正在尝试转换我们可以从iOS设备检索的视频网址,并将其转换为离子3中的BASE64,但我无法实现BASE64网址.
iOS视频网址:filePath = /var/mobile/Containers/Data/Application/3436A7EB-4684-4618-8125-3E6AE1645FCE/Documents/MUS_RA/1534429730643_capturedvideo.MOV
我尝试使用BASE64 cordova插件将以下代码转换为BASE64,但没有运气
this.base64.encodeFile(filePath)
.then((base64String: string) => {
console.log("base64VideoChange");
resolve(base64String);
}, (err) => {
console.log("base64VideoNOTChange");
reject(err);
});
Run Code Online (Sandbox Code Playgroud)
注意:我使用离子3.请帮忙.
我有一个Ionic 3应用程序,我想根据Playstore的下载链接在其中设置一些变量.例如,http://linktoplaystore.com/app?account=4将我的应用程序中的帐户变量设置为4.有没有办法实现这一点?
我不知道如何处理这个错误:
Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'NgModel' since it isn't a known property of 'ion-input'.
1. If 'ion-input' is an Angular component and it has 'NgModel' input, then verify that it is part of this module.
2. If 'ion-input' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
<ion-item>
<ion-label>Cambio</ion-label>
<ion-input type="text" …Run Code Online (Sandbox Code Playgroud)