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

模仿微信枪红包功能的动画效果,可动态配置金额,用户头像,文字内容等信息,传入后可通过block回调返回。

Notifications You must be signed in to change notification settings

amber01/WSRedPacketView

Repository files navigation

WSRedPacketView

Overview

WSRedPacketView是模仿微信抢红包的功能,动画效果也操作体验和微信的基本一致,如果有需要用到类似的功能大家可以下载参考一下。

截图概述

Mou icon

使用

 WSRewardConfig *info = ({
 WSRewardConfig *info = [[WSRewardConfig alloc] init];
 info.money = 100.0;
 info.avatarImage = [UIImage imageNamed:@"avatar"];
 info.content = @"恭喜发财,大吉大利";
 info.userName = @"小雨同学";
 info;
 });
 
 
 [WSRedPacketView showRedPackerWithData:info cancelBlock:^{
 NSLog(@"取消领取");
 } finishBlock:^(float money) {
 NSLog(@"领取金额:%f",money);
 }];

About

模仿微信枪红包功能的动画效果,可动态配置金额,用户头像,文字内容等信息,传入后可通过block回调返回。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

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