简体   繁体   English

故事板UITextview和UIScrollView中的按钮

[英]Storyboard UITextview and buttons inside UIScrollView

I am trying to design a license page in which the user must accept a license before moving forward. 我正在尝试设计一个许可证页面,在该页面中,用户必须接受许可证才能继续前进。 I want the user to scroll the contents of the text and at the bottom of the text to see a 'exit', and 'agree' button. 我希望用户滚动文本的内容,并在文本底部滚动以查看“退出”和“同意”按钮。 IE I do not even want the user to see the buttons until the have scrolled to the bottom. IE浏览器我什至不希望用户看到按钮,直到滚动到底部。

I have a scrollview, that contains a textview and the two buttons in my storyboard. 我有一个滚动视图,其中包含一个textview和故事板中的两个按钮。 However I cannot get the textview and buttons to be scrollable together. 但是我不能使textview和按钮一起滚动。 Has anyone setup something like this before in storyboarding? 有人在情节提要中设置过类似的东西吗?

EDIT: 编辑:

Attaching a screen shot to show what I am trying to do in storyboard 附加屏幕截图以显示我要在情节提要中执行的操作

在此处输入图片说明

Again I want to scroll the entire text view (if it fills the page) and have the buttons at the bottom of the text. 再次,我想滚动整个文本视图(如果它填满了页面),并在文本底部放置按钮。

Use UIScrollView than put UITextView inside of it. 使用UIScrollView不是将UITextView放入其中。 At the bottom of UIScrollView put the buttons. UIScrollView的底部放置按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM