开发者

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开发者_Python百科 UIScrollVeiw and UITextView together can cause problems because text is a subclass of scrollview.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜