【发布时间】:2015-12-22 20:57:01
【问题描述】:
我在 ViewController 中添加了 UIScrollView,并在 UIScrollView 下添加了 UIView
我在那个UIView中添加了总数10个UITextFields,
滚动工作正常
在模拟器/iPhone 中运行 App 时,前 6 个 UITextFields 工作 [Responding to touches] 显示在屏幕上而不滚动,其余 4 个 UITextFields 不工作 [Not response to the touches],这将滚动后显示
谁能指导我解决这个问题?
谢谢
更新: 我在 ViewController 中使用过
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
scrollView.contentSize = CGSize(width: self.view.frame.size.width, height: 1070);
}
【问题讨论】:
标签: ios uiview uiscrollview uitextfield swift2