iPhone +下拉菜单的替代方案
我正在开发本机 iPhone 应用程序。
我有一个要求,屏幕上有 5 个下拉菜单,用户将在其中选择每个值,并基于此在屏幕上生成一个图表。
此外,下拉菜单是级联的,这意味着根据上部下拉菜单中选择的值,下部下拉菜单中的值将会发生变化。
如果它是一个网络应用程序,我没有问题,因为我们有可用的下拉菜单。
但它是一个原生 iPhone 应用程序,我们在 iPhone SDK 中没有下拉菜单。
请建议我其他替代方案来实现相同的目标。
问候, 普拉蒂克
I am developing native iPhone app.
I have one requirement that, there are 5 drop downs in the screen, where user will select each value and based on that there will be a graph generated on screen.
Also the drop downs are cascading, meaning that depending on value selected in upper drop down, the values in lower drop downs will change.
If it was a web app than, I had no problem as we have drop downs available.
But it is a native iPhone app and we don't have drop down in iPhone SDK.
Please suggest me some other alternative to achieve the same.
Regards,
Pratik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Cocoa iPhone 方式是使用表格视图的层次结构以及 委托模式。
The Cocoa iPhone Way would be to use a hierarchy of table views coupled with the delegate pattern.
显然,下拉菜单已经消失,“向导”出现了,它一次问你一个问题,然后弹出你的图表。
Apparently drop downs are out and "wizards" are in, where it asks you a question at a time then pops out your chart.
您可以使用 UITableView ,当用户选择一行时,您可以加载另一个视图,其中显示项目列表...每个新视图的项目应该从以前的视图加载...通过这样您可以级联它也...
you can use
UITableView
and when user selects a row you can load another view in which list of item is displayed...each new view's item should be loaded from previous view... by that you can cascading it also...