展开单元格以显示子类别 [英] Expand a Cell to Show Sub Categories
问题描述
我正在开发一个电子商务移动应用程序,我实现了一个 SWRevealViewController 来获取滑出菜单.当进行 Web 服务调用时,我得到一个包含类别及其子类别的 JSOn 对象.因此,当我单击包含类别的单元格时,我想通过展开来显示其子类别单元格.
我该怎么做?
提前致谢
我为此功能创建了一个示例代码,您可以在其中将表格视图单元扩展到多级.并且它很容易配置 NSDictionary
源代码链接
https://github.com/tarunseera/ExpandibleTableView
I am developing an e-Commerce mobile application and I have a SWRevealViewController implemented to get a Slide Out Menu. When a web service call is made, I get a JSOn object containing categories and its sub categories. So, when I click a cell containing a category, I would like to to show its sub category cells by expanding.
How can I go about making this?
Thanks in advance
I have created one sample code for this feature where you can expand you table view cell upto multilevel. and its easily configured with NSDictionary
Source code Link Expandible Table View
Sample Screen Shot
https://github.com/tarunseera/ExpandibleTableView
这篇关于展开单元格以显示子类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!