iPhone:如何创建可扩展的表视图? [英] iPhone : How to create expanadable table view?

查看:119
本文介绍了iPhone:如何创建可扩展的表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建可扩展的表格视图。



我发现一个



演示你的方式可以使用动画更新来打开和关闭表格视图的各个部分以供查看,其中每个部分代表一个游戏,每行包含游戏的引用。它还使用手势识别器来响应用户输入:* UITapGestureRecognizer允许点击节标题以扩展节; * UIPinchGestureRecognizer允许动态更改表视图行的高度;和* UILongPressGestureRecognizer,允许在表格视图单元格上按住并发起报价单的电子邮件。


I want to create expandable table view.

I found one link which is same as I want.

But I want to create my own table view (Dont want to implements this github code).

How do I achieve this type of functionality ?

解决方案

See this nice tutorial: Table View Animations and Gestures

Demonstrates how you can use animated updates to open and close sections of a table view for viewing, where each section represents a play, and each row contains a quotation from the play. It also uses gesture recognizers to respond to user input: * A UITapGestureRecognizer to allow tapping on the section headers to expand the section; * A UIPinchGestureRecognizer to allow dynamic changes to the height of table view rows; and * A UILongPressGestureRecognizer to allow press-and-hold on table view cells to initiate an email of the quotation.

这篇关于iPhone:如何创建可扩展的表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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