简体   繁体   English

如何在iphone视图中放入滚动条?

[英]How can I put scroll in my iphone view?

in my viewDidLoad, there is too much data, so what should I do so that I can use all of them, some sort of scroll, but how to code it ? 在我的viewDidLoad中,有太多数据,那么我应该怎么做才能使我可以全部使用它们,进行某种滚动,但是如何编码呢?

Picture (you cannot go to the next step if you do not input a picture. Existing or snap a new one)
Name
Age
Gender
Profession
Hobby
Things I like
Things I dislike
Business Address/Home Address (you choose one first and then you can type in the field)
Email Address
Other (this field does not have to match to others for a connection to be made)
Phone number (Automatically it will show the persons phone number)

There are fields, and I can make them, but there is not more space for me :-( 有字段,我可以做,但是没有更多空间供我使用:-(

Use a UIScrollView. 使用UIScrollView。 But you already know that I guess. 但是你已经知道了。 Read this up Learning the basics of UIScrollView 阅读这篇文章学习UIScrollView的基础知识

Alternatively, you may also explore UITableView if your data represents a logical group or set which can be presented as cells/rows on a TableView. 另外,如果您的数据代表逻辑组或逻辑组,并且可以在TableView上以单元格/行的形式显示,则还可以浏览UITableView。

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

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