How do I make a scrollable view modal?

I have a modal view with a text image and a button. When the keyboard is displayed, it covers some elements of my user interface. I would like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can i do this?

+2


a source to share


2 answers


I had the same question and played around with it a bit, setting the UIScrollView is not enough as in the inspector you need the 1st one. increase its Hight, then in the attributes check the following boxes: Scrolling enabled, Scan scrolling, always bounce vertically.



Edited: Purchased Most Important Thing: In the size inspector, set the Buttom (by content) box to the desired size (960 is twice the normal size)

+1


a source


Use UIScrollView instead of regular UIView. You can turn off scrolling when you don't want the user to be able to:



[theView setScrollEnabled:NO];

      

0


a source







All Articles