iOS中的简单手风琴菜单 [英] Simple Accordion Menu in ios

查看:141
本文介绍了iOS中的简单手风琴菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ios中开发一个简单的手风琴菜单,但找不到所需方法的示例。
手风琴菜单标题包括图像(箭头)和文本。单击此文本,其内容将可见。

I want to develop a simple accordion menu in ios but I could not find an example of the way I want. Accordion menu headers to include an image(arrow) and text. Clicking on this text its content will be visible. If clicked again it must be closed.

例如:

>> Title1
>> Title2
>> Title3

如果单击Title1,它将展开。

If click Title1 it expands.

<< Title1
  Including text information...
>> Title2
>> Title3

如何制作最简单的方法?
谢谢您的建议。

How to make the easiest way? Thank you for your advice.

推荐答案

您所需要的是一个UITableView,在行选择上带有函数委托方法来处理基础数据并添加行,并使用从顶部滑动单元格的单元格动画进行重新渲染。

What you're after is a UITableView, with functions on the row selection delegate methods to manipulate the underlying data and add rows and re-render with the cell animation that slides the cells in from the top.

这是Cocoanetics的教程

这篇关于iOS中的简单手风琴菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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