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.