IQKeyboardManager ios11 不显示 toolbar的文字
iOS11的UIToolbar 有一个UIToolbarContentView的子控件,但是它在view的最顶层,事件响应不了,解决办法就是手动执行一次
UIToolbar *toolbar = [UIToolbar new];
[self addSubview: toolbar];
[toolbar layoutIfNeeded];
但是IQ出现问题的话解决起来应该更新下就好了吧,更新了好多遍发现pod更新不上,一直是3.3.7版本,然后 去GitHub查资料 发现3.3.7是适配ios11的,改正pod之后 还是不行 ,强制加上版本号,就会报错
[!] Unable to satisfy the following requirements:
- `IQKeyboardManager (~> 4.0.7)` required by `Podfile`
- `IQKeyboardManager (~> 4.0.7)` required by `Podfile`
Specs satisfying the `IQKeyboardManager (~> 4.0.7)` dependency were found, but they required a higher minimum deployment target.
后来查资料,发现这个错误说是,版本好的原因
这个地方写的是这个 podfile文件里面 ,然后改成8.0 upadate 解决,可以正常运行了,另外发现一片关于pod错误解决的博客仅此献上
https://www.jianshu.com/p/c28fc53cdad1cocospod常见错误