Jon
Jon

Reputation: 4732

UITextField Is Not Scrolling Inside UIView

I have set my UITextField to non editable and it scrolls when the text is more than what fits in the box, but I want the whole box to scroll as well, like I want everything on the page to scroll up and down even though there is no extra data off the screen, I just want the bounce there.

Do I need to add a UIScrollView for this? I read that having a UIScrollVeiw and UITextView together can cause problems because text is a subclass of scrollview.

Upvotes: 0

Views: 1503

Answers (1)

user745098
user745098

Reputation:

Make the text view's "Always scroll horizontally" and/or "Always scroll vertically" checked.

As far as adding UITextView in UIScrollView is concerned, it might not cause problems in iOS 4.0+, but i am not sure.

You can refer to these links that deal with similar problems. UITextView inside UIScrollView

Upvotes: 1

Related Questions