Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用来自 github 的 Customios7alertview。我面临一些反对键盘表示的问题。当我单击添加按钮时,aletview 会出现文本视图和一些按钮。当我单击文本视图输入文本时,有时键盘会出现在警报视图下。当时我无法使用键盘输入文本。但有时它可以正常工作。
更改您的代码:
[[[[UIApplication sharedApplication] windows] lastObject] addSubview:self];
至:
[[[[UIApplication sharedApplication] delegate] window] addSubview:self];