【发布时间】:2017-05-16 06:32:14
【问题描述】:
场景
- NavigationController 是 TabBarController 的根控制器
- TabBarController 有 2 个 UIViewControllers
- 一个 UIViewController 具有呈现另一个 UIViewController 的功能
- 呈现的 UIVIewController 具有 StackView
- 实例化 FormController 的子类(例如:FormVC)并作为子视图添加到 Stack
问题
FormVC 的keyboardWillShow 函数没有被调用。键盘实际上将输入添加到行中,但不会发生自动滚动
这只是 Eureka 中的问题,还是使用导航控制器的 pushViewController 的问题?
【问题讨论】:
-
需要测试是否可以在推送时添加Notification Observer:stackoverflow.com/questions/37825327/…
-
发布到 Eureka 问题列表:github.com/xmartlabs/Eureka/issues/1045
-
因为 FormVC 只是在另一个 VC 中实例化,似乎有些东西丢失了。当在 ContainerView 的 Storyboard 中设置为 ViewController 类类型时,设法让它正常工作。
标签: ios swift3 uinavigationcontroller pushviewcontroller eureka-forms