为了这个目的,我可以使用iitableview [英] Iphone can I use uitableview for this purpose

查看:63
本文介绍了为了这个目的,我可以使用iitableview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在UITableView上使用UINavigation控制器来查看我的问题的多页问题应用程序:

I plan to use a UINavigation controller with UITableView for a multi page questionary application here below how my questions looks like:

我的问题是我真的可以使用uitableview / tableviewcell为此目的?我听说它使用长列表和易于编码实现良好的内存管理但我也听说过我可能无法将像datepicker这样的控制器放在其中吗?我不想使用scrollview,因为它很难将问题作为组件组和管理内存来管理。

My question is can I really use uitableview/tableviewcell for this purpose? I heard that it makes good memory management with long lists and easy to code but I also heard I may not able to put controllers like datepicker in it? I dont want to use scrollview because then it will be hard to manage questions as component groups and manage memory.

还考虑一下我已经使用UITableview什么是最好的和简单的在这里练习显示单选按钮和复选框,从用户那里获取用户输入也应该很容易,也不是复杂的委托模式。

Also Considerding that I already Use UITableview what is the best and easy practise here to show radiobuttons and checkboxes, getting the user input from the user should also be easy and not complicated delegate patterns.


  • 选择器视图和将它们放入警报屏幕

  • 将它们显示为包含自定义单选按钮和复选框图标的列表

  • 以另一种方式使用pickerview


Page1 --------------------

Page1--------------------

标签:输入您的姓名

Texbox

隐藏标签:您必须输入
名称

Hidden label: you must enter your name

隐藏标签:[空]

标签:如果出生则输入您的日期

Label: enter your date if birth

Uidate选择器

隐藏标签:你应该在上面18

Hidden label: you should be above 18

隐藏标签:[空]

标签:选择所有类型的积分
想要?

Label: Choose all kind of credits you want?

信用类型的UIpicker视图

UIpicker view with credit types

隐藏标签:选择至少2种信用类型

Hidden label: choose at least 2 credit types

隐藏标签:这是解释
信用证。

Hidden Label: this is explanation text of credits.

。 。
这样的任何问题

- Page1结束-----------

--End of Page1-----------


推荐答案

简而言之。是的你可以。 UITableView和UIPicker的问题在于它们都使用手势识别器进行滑动。如果你将一个UIPicker添加到一个单元格,你的表将能够滚动,那么你就会遇到问题。您可以在UIAlertSheet中而不是直接在单元格中显示UIPicker。

In short. Yes you can. The problem with UITableView and UIPicker is that both use gesture recognizers for swiping. And if you will add an UIPicker to a cell and your table would be able to scroll then you would have a problem. You could present your UIPicker in the UIAlertSheet instead of directly in the cell.

这篇关于为了这个目的,我可以使用iitableview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆