//
// JLDragCardView.h
// JLCardAnimation
//
// Created by job on 16/8/31.
// Copyright © 2016年 job. All rights reserved.
//
#import <UIKit/UIKit.h>
#define ROTATION_ANGLE M_PI/8
#define CLICK_ANIMATION_TIME 0.5
#define RESET_ANIMATION_TIME 0.3
@class JLDragCardView;
@protocol JLDragCardDelegate <NSObject>
-(void)swipCard:(JLDragCardView *)cardView Direction:(BOOL) isRight;
-(void)moveCards:(CGFloat)distance;
-(void)moveBackCards;
-(void)adjustOtherCards;
@end
@interface JLDragCardView : UIView
@property (weak, nonatomic) id <JLDragCardDelegate> delegate;
@property (strong, nonatomic) UIPanGestureRecognizer *panGesture;
@property (assign, nonatomic) CGAffineTransform originalTransform;
@property (assign, nonatomic) CGPoint originalPoint;
@property (assign, nonatomic) CGPoint originalCenter;
@property (assign, nonatomic) BOOL canPan;
@property (strong, nonatomic) NSDictionary *infoDict;
@property (strong, nonatomic) UIImageView *headerImageView;
@property (strong, nonatomic) UILabel *numLabel;
@property (strong, nonatomic) UIButton *noButton;
@property (strong, nonatomic) UIButton *yesButton;
-(void) leftButtonClickAction;
-(void) rightButtonClickAction;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
ios-卡片左右滑动效果.zip
共69个文件
png:14个
jpeg:11个
sample:9个
需积分: 20 9 下载量 191 浏览量
2019-07-11
19:58:39
上传
评论
收藏 1.25MB ZIP 举报
温馨提示
一个类似于探探,nice等等的卡片滑动效果,可以设置卡片的数量!主要采用uiview的基础动画,监听手势的滑动方向,距离,实现效果,可以根据动画,做类似于交友之类的app,是否喜欢好友,或电商类,是否喜欢某商品!
资源推荐
资源详情
资源评论
收起资源包目录
913d9722c0af2b5ad24bdec04719b2c5.zip (69个子文件)
JLCardAnimation
JLCardAnimation.xcodeproj
project.xcworkspace
contents.xcworkspacedata 160B
xcuserdata
job.xcuserdatad
UserInterfaceState.xcuserstate 32KB
project.pbxproj 27KB
xcuserdata
job.xcuserdatad
xcschemes
xcschememanagement.plist 667B
JLCardAnimation.xcscheme 4KB
xcdebugger
Breakpoints_v2.xcbkptlist 473B
PrefixHeader.pch 481B
.git
hooks
pre-push.sample 1KB
prepare-commit-msg.sample 1KB
applypatch-msg.sample 478B
pre-commit.sample 2KB
pre-applypatch.sample 424B
commit-msg.sample 896B
pre-rebase.sample 5KB
update.sample 4KB
post-update.sample 189B
config 265B
description 73B
refs
tags
heads
objects
info
pack
info
exclude 240B
HEAD 23B
FETCH_HEAD 0B
CardHeader.h 807B
.DS_Store 8KB
JLCardAnimationUITests
JLCardAnimationUITests.m 1KB
Info.plist 733B
JLCardAnimationTests
JLCardAnimationTests.m 919B
Info.plist 733B
JLCardAnimation
Assets.xcassets
AppIcon.appiconset
Icon-Small@3x.png 13KB
Icon-Small@2x.png 6KB
Contents.json 1KB
Icon-Small.png 2KB
Icon-60@3x.png 50KB
Icon-Spotlight-40@3x.png 24KB
Icon-60@2x.png 24KB
Icon-Small@2x-1.png 6KB
Icon-Spotlight-40@2x.png 11KB
Contents.json 62B
cryFace.imageset
cryFace@3x.png 4KB
Contents.json 344B
cryFace@2x.png 4KB
smileFace.imageset
Contents.json 348B
smileFace@3x.png 4KB
smileFace@2x.png 4KB
.DS_Store 6KB
main.m 330B
images
1.jpeg 84KB
5.jpeg 164KB
8.jpeg 114KB
7.jpeg 102KB
2.jpeg 138KB
dislikeBtn.png 22KB
.DS_Store 6KB
10.jpeg 88KB
6.jpeg 78KB
9.jpeg 84KB
3.jpeg 78KB
0.jpeg 88KB
likeBtn.png 22KB
4.jpeg 51KB
JLDragCardView.m 10KB
AppDelegate.h 273B
AppDelegate.m 2KB
JLCardViewController.h 220B
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 2KB
.DS_Store 8KB
Info.plist 2KB
JLCardViewController.m 13KB
JLDragCardView.h 1KB
共 69 条
- 1
资源评论
weixin_39841848
- 粉丝: 509
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功