Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FWAlertView.alert 键盘遮挡。 #34

Open
chundev opened this issue Jun 16, 2020 · 6 comments
Open

FWAlertView.alert 键盘遮挡。 #34

chundev opened this issue Jun 16, 2020 · 6 comments

Comments

@chundev
Copy link

chundev commented Jun 16, 2020

        let alertView = FWAlertView.alert(title: "标题", detail: "带输入框", inputPlaceholder: "请输入...", keyboardType: .default, isSecureTextEntry: false, customView: nil, items: items)

修改keyboardtype default键盘出现遮挡。 项目同样用到了IQKeyboardManagerSwift。

@choiceyou
Copy link
Owner

键盘遮挡当前输入框以下区域是正常的,IQKeyboardManagerSwift 只会保证当前输入框及以上部分是不会被遮挡的。

@uponup
Copy link

uponup commented Jul 21, 2020

default都会被遮挡呀,

@uponup
Copy link

uponup commented Jul 21, 2020

键盘遮挡当前输入框以下区域是正常的,IQKeyboardManagerSwift 只会保证当前输入框及以上部分是不会被遮挡的。

能不能不遮挡?Alert向上移动一下?

@Ezrealz
Copy link

Ezrealz commented Jan 12, 2021

可是把确定按钮都给遮挡了,点不到按钮啊!

@Ezrealz
Copy link

Ezrealz commented Jan 12, 2021

键盘遮挡当前输入框以下区域是正常的,IQKeyboardManagerSwift 只会保证当前输入框及以上部分是不会被遮挡的。

能不能不遮挡?Alert向上移动一下?

您解决了吗兄弟

@choiceyou
Copy link
Owner

可以搜索一下IQKeyboardManager的keyboardDistanceFromTextField属性,如Swift中的使用:
IQKeyboardManager.shared.keyboardDistanceFromTextField = 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants