如何隐藏键盘助手栏(How to hide the keyboard assistant bar)
我正在使用iPad应用程序,我无法隐藏
UIKeyboardAssistantBar
,软键盘上方显示的条形图,带有文本预测等。请参见下图,其中显示了全键盘,UIKeyboardAssistantBar
参考 - 条形图I想隐藏在键盘上方(显示“2”的那个)我遇到的问题是当使用外部键盘时:当文本视图获得焦点时,软键盘不会显示,但是总是显示助手栏 - 到目前为止我找到的唯一方法是让用户手动使用最右侧的图标隐藏它。
理想情况下,我正在寻找的解决方案是一个全局调用,启用或禁用它,这样我就不必为每个文本视图单独处理它。
任何想法?
I'm working on an iPad app, and I am unable to hide the
UIKeyboardAssistantBar
, the bar shown above the soft keyboard, with text prediction etc. See picture below, which shows the full keyboard, just to give a reference - the bar I want to hide is above the keyboard (the one displaying "2")The problem I have is when an external keyboard is used: the soft keyboard is not shown when a text view obtains the focus, but that assistant bar is always shown instead - the only way I've found so far is to let the user manually hide it, using the icon at the far right.
Ideally, the solution I'm looking for is a global call that enables or disables that, so that I don't have to handle that individually for each text view.
Any idea?
原文:https://stackoverflow.com/questions/37800488
最满意答案
如果您在.NET可执行文件中使用Mono的Process.Start,它将自动与Mono一起运行。 它不会直接传递给操作系统。
If you use Process.Start from Mono on a .NET executable, it will be run with Mono automatically. It will not be passed directly to the OS.
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
如何通过没有控制台的cmd.exe启动分离进程?(How to launch detached process through cmd.exe with no console?)[2022-12-03]
在情况1中,您启动的cmd.exe实例可以运行批处理文件本身。 没有创建子进程。 在情况2中,您启动的cmd.exe实例必须将控制台应用程序作为子进程运行。 它无法知道您希望应用程序未被赋予控制台窗口,因此当它调用CreateProcess时,它不会使用DETACHED_PROCESS标志,并且Windows会DETACHED_PROCESS创建一个新控制台。 在情况3中,子进程不是控制台应用程序,因此即使未指定DETACHED_PROCESS ,Windows也不会为其创建控制台。 通常的解决方案是自己打 ... -
你可以查看操作系统。 private static String OS = System.getProperty("os.name") You can check the OS. private static String OS = System.getProperty("os.name")
-
基本上你有一个控制台应用程序(A.exe)和GUI应用程序(B.exe),A.exe中的逻辑只能在通过B.exe而不是任何其他进程或用户执行时执行。 您可以通过将参数传递给A.exe来实现它, 假设你如何从GUI应用程序调用A.exe, Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); process.StartInfo = startInfo; //Set argument as " ...
-
无法启动.exe(Can't launch .exe)[2022-04-29]
尝试这样的事情: Private Sub PlayButton_Click(sender As System.Object, e As System.EventArgs) Handles PlayButton.Click Try OpenFileDialog1.FileName = "" OpenFileDialog1.Filter = "World of Warcraft (WOW.EXE)|WOW.EXE" ... -
如何从exe外部启动特定的.net表单?(how can i launch a specific .net form from outside of the exe? using a batch file)[2023-05-15]
我弄清楚了...... 首先在命令行参数下,我在解决方案属性中添加了命令。 然后在Application.Designer.vb(Program.cs Main()中,如果你正在使用c#)下 受保护的覆盖Sub OnCreateMainForm() 我添加了以下内容......_ Protected Overrides Sub OnCreateMainForm() ... -
VB.NET阻止.exe启动(VB.NET block .exe to launch)[2023-05-21]
找到代码: Dim myFileStream As System.IO.FileStream Dim sFileName As String = Application.StartupPath & "\test.exe" 'block myFileStream = New System.IO.FileStream(sFileName, FileMode.Open, FileAccess.Read, FileShare.None) 'unblock myFileStream.Close() Found ... -
当我从“android-ndk-r14b”切换到“android-ndk-r13b”时,我遇到了同样的问题并且可以解决它。 也许它适用于旧版本的Android NDK,但我还没试过。 我的猜测是来自“android-ndk-r14b”的“clang.exe”版本需要在文件路径中反斜杠之前的转义符号 - “C:\\ Users \\ Documents ...”而不是“C:\ Users \ Documents ......” I faced the same problem and could resolv ...
-
我怎样才能以跨平台的方式在新流程中启动.NET EXE?(How can I launch a .NET exe in a new process in a cross-platform way?)[2023-02-17]
如果您在.NET可执行文件中使用Mono的Process.Start,它将自动与Mono一起运行。 它不会直接传递给操作系统。 If you use Process.Start from Mono on a .NET executable, it will be run with Mono automatically. It will not be passed directly to the OS.