Expandable TableView Animation

码农软件 · 软件分类 · 列表(Table) · 2019-05-27 10:14:24

软件介绍

点击列表某一行(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];
}

本文地址:https://codercto.com/soft/d/6645.html

The Seasoned Schemer

The Seasoned Schemer

Daniel P. Friedman、Matthias Felleisen / The MIT Press / 1995-12-21 / USD 38.00

drawings by Duane Bibbyforeword and afterword by Guy L. Steele Jr.The notion that "thinking about computing is one of the most exciting things the human mind can do" sets both The Little Schemer (form......一起来看看 《The Seasoned Schemer》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

随机密码生成器
随机密码生成器

多种字符组合密码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具