×

根据tableView的特点,操作Cell实现一些动画效果

消耗积分:1 | 格式:rar | 大小:0.3 MB | 2017-09-25

分享资料个

前言

UITableView 是iOS日常开发中经常使用到的控件。tableView的普通展示效果比较生硬,为了提升APP的活力,提升体验,我们可以对根据tableView的特点,操作Cell实现一些动画效果。

我写了一个简单的动画集 TableViewAnimationKit,只需要一行代码就可以让tableView实现动画

目前有大概10个动画,后续会优化增加。

源码放到Github上: TableViewAnimationKit欢迎大家star、下载,交流沟通。

正文

一、效果展示:

根据tableView的特点,操作Cell实现一些动画效果

根据tableView的特点,操作Cell实现一些动画效果

根据tableView的特点,操作Cell实现一些动画效果

二、使用方法

TableViewAnimationKit调用各个动画的方法都为类方法,只需一行代码就可以调用。

eg:

1

[TableViewAnimationKit shakeAnimationWithTableView:tableView];

TableViewAnimationKit提供的动画类方法

+ (void)moveAnimationWithTableView:(UITableView *)tableView;

+ (void)alphaAnimationWithTableView:(UITableView *)tableView;

+ (void)fallAnimationWithTableView:(UITableView *)tableView;

+ (void)shakeAnimationWithTableView:(UITableView *)tableView;

+ (void)overTurnAnimationWithTableView:(UITableView *)tableView;

+ (void)toTopAnimationWithTableView:(UITableView *)tableView;

+ (void)springListAnimationWithTableView:(UITableView *)tableView;

+ (void)shrinkToTopAnimationWithTableView:(UITableView *)tableView;

+ (void)layDonwAnimationWithTableView:(UITableView *)tableView;

+ (void)roteAnimationWithTableView:(UITableView *)tableView;

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !