如何创建类似于在 IOS 中使用 AJAX 创建的手风琴控件? [英] How do i create an accordion control similar to one created using AJAX in IOS?

查看:24
本文介绍了如何创建类似于在 IOS 中使用 AJAX 创建的手风琴控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个类似于使用 AJAX 创建的手风琴控件 http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx 我可以在其中放置图标而不是 iPhone 的文本.

I want create an accordion control similar to one created using AJAX http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx where I can place icons instead of text for iPhone.

推荐答案

基本上你想使用可扩展的 UITableView - 当你点击一个单元格时,你会在它下面显示一些单元格(你的手风琴).您不一定需要使用表格视图,但通常这是一个很好的起点.

Basically you want to use an expandable UITableView - when you tap a cell you reveal a number of cells beneath it (the contents of your accordion). You don't necessarily need to use a table view, but typically it's a good starting point.

有几个控制器已经公开了——例如这个 - 但是一旦您对表格视图和删除/添加单元格有所了解后,自己编写代码并不太难.

There are a couple of controllers that have been put out in the open - this one, for example - but it's not too difficult to write yourself once you know a bit about table views and removing/adding cells.

这篇关于如何创建类似于在 IOS 中使用 AJAX 创建的手风琴控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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