/**
* Copyright (c) 2009 Alex Fajkowski, Apparent Logic LLC
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#import <UIKit/UIKit.h>
#import "AFItemView.h"
#import <QuartzCore/QuartzCore.h>
@protocol AFOpenFlowViewDelegate;
@interface AFOpenFlowView : UIView {
id <AFOpenFlowViewDelegate> viewDelegate;
NSMutableDictionary *onscreenCovers; //当前显示的卡片集合 按照次序索引
NSMutableDictionary *coverImages; //所有卡片用的图片 按照次序索引
NSMutableDictionary *coverImageHeights; //记录每个卡片图片的高度 按照次序索引
UIImage *defaultImage; //默认没有图片资源时候的图片
CGFloat defaultImageHeight;
UIScrollView *scrollView; //展示的superView
int lowerVisibleCover; //selectedIndex-左右两边分别看到的个数
int upperVisibleCover;
int numberOfImages; //总共有多少个图片
int beginningCover; //用手拖动时候记录 拖动前的 选中索引
AFItemView *selectedCoverView;
CATransform3D leftTransform, rightTransform;
CGFloat halfScreenHeight;
CGFloat halfScreenWidth;
Boolean isSingleTap;
Boolean isDoubleTap;
Boolean isDraggingACover; //标志你点中了一张卡片了么
CGFloat startPosition;
}
@property (nonatomic, assign) id <AFOpenFlowViewDelegate> viewDelegate;
@property (nonatomic, retain) UIImage *defaultImage;
@property int numberOfImages;
- (void)setImage:(UIImage *)image forIndex:(int)index;
- (void)dataSourceDefaultImage:(UIImage *)defaultS;
@end
@protocol AFOpenFlowViewDelegate <NSObject>
@optional
- (void)openFlowView:(AFOpenFlowView *)openFlowView selectionDidChange:(int)index;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
MyFlow 2.zip (26个子文件)
MyFlow 2
main.m 351B
Image
hallCard2.png 38KB
.DS_Store 6KB
hallCard1.png 41KB
hallCard3.png 38KB
hallCard4.png 38KB
hallCard0.png 37KB
MyFlow_Prefix.pch 181B
MyFlow.xcodeproj
apple.pbxuser 13KB
project.pbxproj 16KB
apple.mode1v3 40KB
.DS_Store 6KB
Classes
MyFlowAppDelegate.m 3KB
OpenFlow
AFItemView.m 3KB
AFUIImageReflection.h 1KB
AFItemView.h 2KB
AFOpenFlowView.h 3KB
AFOpenFlowConstants.h 1KB
AFOpenFlowView.m 14KB
AFUIImageReflection.m 4KB
MyFlowViewController.m 2KB
MyFlowAppDelegate.h 464B
MyFlowViewController.h 378B
MyFlowViewController.xib 7KB
MainWindow.xib 20KB
MyFlow-Info.plist 909B
共 26 条
- 1
霜之幽语
- 粉丝: 7
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页