开发者

How to make modal view scrollable?

I have a modal vie开发者_开发问答w with a textview and a button. When the keyboard is displayed it covers up some of my UI elements. I'd like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can I do this?


I've had the same question, and i've played with it a bit, setting a UIScrollView is not enough, as in the inspector you should 1st. increase it Hight, then in the attributes, check the following checkboxes: Scrolling enabled, Bounce Scroll, always bounce vertically.

Edited: Forgot the most inportant thing: in the size inspector, set the Buttom field (under content) to the size you wish, (960 is twice the regular size)


Use a UIScrollView instead of an ordinary UIView. You can disable scrolling when you don't want the user to be able to with:

[theView setScrollEnabled:NO];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜