问题标签 [iqkeyboardmanager]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
259 浏览

ios - IQKeyboardManager 与 DownPicker 冲突

我在整个项目中使用IQKeyboardManager。我想在同一视图中将 DownPicker用于 2 个文本字段。我想DownPicker用作自定义包装器。问题是我DownPicker在一个页面加载时只使用两个文本字段中的一个。这两个第三方库都相互冲突。请给我一些解决方案。我的代码如下:

0 投票
1 回答
437 浏览

ios - 如何使用 IQKeyboardManager 跳过隐藏的 UITextField?

UITextField使用时如何跳过隐藏IQKeyboardManager?目前,当我按下下一个箭头时,它会遍历每个文本字段。以及如何使键盘的下一个按钮转到下一个文本字段?

0 投票
1 回答
134 浏览

swift - 升级的 Xcode - IQKeyboardManager Cocoapod 不工作

我最近升级了我的 Xcode。我能够将所有代码转换为 Swift 3,但我的 CocoaPods 却没有。是否有捷径可寻?

0 投票
1 回答
60 浏览

swift - 升级 Xcode 后 cocoapods 的问题

更新了我的 Xcode 项目,但我的IQKeyboardManagercocoapod 无法正常工作。我更新了它,现在我收到了这个错误:

模块文件是由旧版本的编译器创建的;重建 IQKeyboardManagerSwift

关于如何“重建”cocopod 的任何帮助?

0 投票
2 回答
647 浏览

ios - iOS UITableViewController静态tableView不滚动

我有一个 Xcode 8 项目,每当我实例化 a 时UITableViewController,我根本无法滚动内容。我已经确定:

  • userInteractionEnabled设置为TRUE(在 tableView 上)
  • scrollEnabled设置为TRUE(在 tableView 上)
  • 没有userInteractionEnabled设置为TRUE或设置为UITapGestureRecognizer的覆盖视图cancelsTouchesInViewTRUE
  • 没有clipsToBounds设置为FALSE并可能阻止滚动的小视图
  • 表格视图高度不大于内容的高度
  • 弹跳 + 垂直弹跳设置为 TRUE
  • 我正在使用IQKeyboardManager. 我通过故意禁用它来确保这个错误不是由库引起的。
  • 这也与方向无关。我尝试过仅纵向,并且不断更改方向以检查结果。

有趣的是,如果我UITextField从其中一个静态单元格中点击 a,IQKeyboardManager内容会向下滚动一点。所以表格视图是可滚动的,但我不能通过正常滑动来做到这一点。

此外,我认为这可能与我的特定课程有关,也许我做错了什么......但我什至尝试UITableViewController在应用程序的第一个初始化点用 5 个部分实例化一个空白,但它没有不工作。

请记住所有这些信息,我该怎么办?我正在使用 iOS 10 和 iPhone 6s。

0 投票
2 回答
948 浏览

ios - iOS:如何使用 IQKeyboardManager 更改要聚焦的 UITextField 的顺序

我在故事板中放置UITextFields了多个UIViewController
我正在使用IQKeyboardManagerUITextFields在它们集中时滚动键盘。

IQKeyboardManager 工具栏

当我单击键盘工具栏中的下一个按钮UITextField时,另一个按钮获得焦点,而当前按钮失去焦点。

如何通过键盘工具栏按钮控制 s焦点的顺序?UITextField

0 投票
2 回答
2241 浏览

ios - How to add text field auto suggestions in a drop down list?

I have one Billing Address page in the app. I have to remember all text field data adds by the user and show them in a drop down list.

I have to create a table view on the bottom of the text fields. I am also using IQKeyboardManager for maintaining text fields when the keyboard appears.

So, when the keyboard appears, the table view is overlapping on the back of keyboard. How to resolve this issue?

I am also attaching the screenshot:

IQKeyboardManager toolbar in front of text field

0 投票
1 回答
2023 浏览

ios - sharedApplication 不可用:在 ios 应用程序扩展中不可用 - 在适当的情况下使用基于视图控制器的解决方案

我想要解决这个错误的解决方案。

我在编译和构建我的 iOS 项目时遇到错误。我IQKeyboardManager在这个地方遇到了一个错误:

我得到这个错误的另一个地方也是一样的:

任何人都可以有解决方案吗?请给我...提前谢谢。

0 投票
2 回答
1526 浏览

ios - IQKeyboardManager - 将 UITextView 上移太多

IQKeyboardManager用来简化我拥有的笔记视图控制器的键盘管理(包含一个大的UITextView)。但是,一旦键盘处于活动状态,屏幕就会不必要地向上移动。我希望屏幕在键盘处于活动状态之前保持原样(见下图),并且只有在用户的输入被键盘覆盖时才让 UITextView 滚动。

键盘激活前

当键盘处于活动状态时(视图向上滚动,覆盖“Notes”和导航栏)

我不希望导航栏或“注释”标签被遮盖,但我找不到IQKeyboardManager阻止将其UITextView一直推到顶部的设置。

当键盘处于活动状态时,如何防止视图向上移动?

编辑:我应该注意我不反对删除IQKeyboardManager,我只是认为它也会处理这个问题。我主要只需要一种方法,让我UITextView在用户输入键盘下方的内容时自动滚动。

更新:IQKeyboardManager我没有通过调整我的 contentInset 来解决我的问题,UITextView具体取决于键盘是否可见。

0 投票
6 回答
3389 浏览

ios - Hide next previous button in IQKeyboardManager in Objective C

I'm using IQKeyboardManager and I want to hide the next/previous button from the keyboard...

I referred to this question.

I tried with this code:

but the shouldHidePreviousNext property is not available in the library... How can we achieve this? Any help could be appreciated.