Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

最简单的方式,一句代码集成加入购物车动画。

Notifications You must be signed in to change notification settings

liuhaoliang/ShoppingCarAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

用法

1.继承ShopCarAnimationViewController.h

2.方法调用- (void)addProductsAnimation:(UIImageView *)imageView dropToPoint:(CGPoint)dropToPoint isNeedNotification:(BOOL)isNeedNotification;

参数说明
/**
 * 购物车动画,商品图片掉入购物车
 *
 * @param imageView 掉入购物车的商品图片
 * @param dropToPoint 掉入位置
 * @param isNeedNotification 是否有动画结束的通知(用于购物车上的计数加一)
 */

注:动画结束用通知的形势发送,如需要,在响应的界面增加收听者

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(shopCarBadgeValueAdd:) name:@"shopCarAnimationEnd" object:nil];

并实现相应方法,在dealloc方法里移除监听者。

About

最简单的方式,一句代码集成加入购物车动画。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /