How do i create an accordion control similar to one created using AJAX in IOS?

岁酱吖の 提交于 2019-12-23 04:48:11

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/8576555/how-do-i-create-an-accordion-control-similar-to-one-created-using-ajax-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!