问题标签 [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 回答
492 浏览

ios - 修复状态栏位置

我使用以下代码从应用程序委托添加了状态栏背景视图:

当我使用 时,问题就开始IQKeyboardManager了,当按下文本字段时,它会向上滑动添加的状态栏背景视图。它看起来像这样:

向上滑动背景视图

我将如何修复该状态栏位置?

0 投票
4 回答
6421 浏览

ios - 当 UITableView 嵌入到容器视图中时,IQKeyboardManager 不起作用

目前,我正在使用一个嵌入的容器视图,UITableView并且正在使用IQKeyboardManagerCocoaPod 滚动视图,这样我的视图UITextFieldsUITextViews不会被键盘覆盖。

我可以成功地import IQkeyboardManager让它在其他视图中工作,但是当UITableView它嵌入到容器视图中时它不起作用。

0 投票
0 回答
2461 浏览

swift - Scrolling in UIView using IQKeyboardManager but without using UIScrollView

I am stuck in a screen where?

  • I have two UITextFields at top and one UIButton at bottom.
  • I have used IQKeyboardManager library so it is possible to scroll the entire page (till the bottom button) with keyboard present on the screen with the help of IQKeyboardManager and without use of UIScrollView.
  • Though I have set layout constraint of IQKeyboardManager which is IQLayoutGuideConstraint to my bottom constraint but it is not working for me. self.IQLayoutGuideConstraint = self.bottomLayoutConstraint

Please help. Thanks in advance.

0 投票
4 回答
5116 浏览

ios - 尝试将 IQKeyboardManager 与 Xcode 和 Swift 一起使用时出错

我想在使用 a或 a时使用IQKeyboardManager来管理键盘。我正在使用 Xcode 和 Swift。我不使用 CocoaPods,我想使用源代码方法。UITextFieldUITextView

这些是我正在做的步骤。

  1. 打开项目并将IQKeyboardManagerSwift文件夹移动到我的 Xcode 项目的左侧边栏中。这是它的屏幕截图: Xcode 侧边栏中的 IQKeyboardManagerSwift 文件夹

  2. 然后我像这样更改了 AppDelegate.swift 中的代码:

    /li>

但我正在Use of unresolved identifier 'IQKeyboardManager'争取IQKeyboardManager.sharedManager().enable = true

我究竟做错了什么?我完全按照手册进行了操作,并且已经阅读了数百遍,但无法使其正常工作。

0 投票
0 回答
235 浏览

ios - IQKeyBoardManager 库问题?

IQKeyBoardManagerobjective C. 在这个应用程序中,我使用 MFSideMenu 库作为侧边菜单。但是当我单击文本字段或文本视图时,侧面菜单会自动向下滚动。并且没有完全显示。删除 IQKeyBoardManager 侧边菜单后工作完美。

任何人都可以提供 IQDropDownTextField 库的链接,这对侧边菜单没有影响。

0 投票
1 回答
247 浏览

ios - 使用 IQKeyboardReturnKeyHandler 在键盘上方显示 uitextfield

我使用 anIQKeyboardReturnKeyHandler来显示我的键盘,我的问题是:是否可以UITextFieldUIToolbarof中显示 a IQKeyboardManager- 如果可以,你能教我如何在代码中显示它吗?

0 投票
3 回答
4628 浏览

ios - 在 IQKeyboardManager 中始终保持视图位于顶部(不要使用键盘滚动)

我用IQKeyboardManager键盘输入后保持文本字段上升。

即使单击文本字段,我也不想滚动到特定视图。下面是设计的截图。我希望“标题”保持在顶部。

视图的检查器布局

从他们的文档中,有一种方法可以使导航栏保持在顶部。

0 投票
10 回答
25093 浏览

ios - 如何在 IQKeyboardManager iOS Swift 3 中隐藏工具栏

开始使用键盘输入时,我正在使用IQKeyboardManger库滚动文本字段,但我不想显示其库中的默认工具栏。下面是我使用的代码。

在此处输入图像描述

0 投票
1 回答
1543 浏览

frameworks - NativeScript - 未找到框架 (IQKeyboardManager)

当我在 NativeScript 中使用 IQKeyboardManager 时,它在我的项目中运行良好,但是当我使用Xcode 构建/归档版本时,出现此错误:

找不到框架 IQKeyboardManager

错误图片

有没有人有同样的问题?

0 投票
1 回答
1465 浏览

xcode - IQKeyboardManager 与 CustomTextField (SkyFloatingLabelTextField) 使用 Swift 3

我正在使用SkyFloatingLabelTextField这是一个自定义的UITextField. 添加IQKeyboardManager到我的 Podfile ( pod install) 后,预计它将自动处理键盘问题。

IQKeyboardManager有什么可以整合的线索customTextfield吗?