I Added a UIScrollView
in a ViewController, And Added UIView
under that UIScrollView
I added total number 10 UITextFields
in that UIView
,
Scrolling is Working fine
While running App in Simulator/ iPhone, the First 6 UITextFields
Working [Responding to touches] which are shown on the screen without scrolling, Remaining 4 UITextFields
are not working [Not responding to the touches], which will shown after scrolling
Please can any one guide me to resolve this issue?
thank you
UPDATE: I Used it in ViewController
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
scrollView.contentSize = CGSize(width: self.view.frame.size.width, height: 1070);
}
Your text fields lies outside the superview bounds. You should resize the view so all the text fields will be within bounds.
Try this code it works for me
in .h
and in .m file