Expandable TableView Animation

程序名称:Expandable TableView Animation

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

Expandable TableView Animation 介绍

点击列表某一行(cell),被点击的列表行下拉展开,新展开的视图(demo中是新的列表)和当前被点击的列表行重新组成一个新的视图。换句话说,就是从主视图的列表到列表某一行的细节视图的一种平滑跳转动画。
代码使用方式:

step 1: copy OZLExpandableTableView.h && OZLExpandableTableView.m to your
project
step 2: #import “OZLExpandableTableView.h” in your master view
step 3: in your master view, add code [self expandFromCell: toViewController:]
when you trigger the detail view

for example:

-(void)tableView:(UITableView )tableView didSelectRowAtIndexPath:(NSIndexPath )indexPath
{
OZLDetailViewController *detailview = [[OZLDetailViewController alloc] init];
detailview.titleStr = [_data objectAtIndex:indexPath.row];
[self expandFromCell:[tableView cellForRowAtIndexPath:indexPath]
toViewController:detailview];
}

step 4: add code below in your master view

-(void) viewWillAppear:(BOOL)animated
{
[self restoreFromExpandedCell];
}

Expandable TableView Animation 官网

https://github.com/zhijie/ExpandableTableView

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...