//
// SBPageFlowView.h
// SBFlowView
//
// Created by JK.Peng on 13-1-30.
// Copyright (c) 2013年 njut. All rights reserved.
//
/***********************************************************************************
*
* Created by JK.Peng on 13-1-30.
*
* Any comment or suggestion welcome. Referencing this project in your AboutBox/Credits is appreciated.
*
***********************************************************************************/
/*
*It provides a novel picture browse.
*While this page is shown, the parts of content in the adjacent Pages also can be seen 。
*
*Feature: Cycle Scroll View
*
*I refereed the web:https://github.com/kejinlu/PagedFlowView
*Here,I want to say thanks to the original author
*/
#import <UIKit/UIKit.h>
typedef enum{
FlowViewOrientationHorizontal = 0,
FlowViewOrientationVertical
}FlowViewOrientation;
typedef enum {
PageDirectionPrevious = 0,
PageDirectionDown
} PageDirectionE;
@protocol SBPageFlowViewDataSource;
@protocol SBPageFlowViewDelegate;
@interface SBPageFlowView : UIView<UIScrollViewDelegate>{
FlowViewOrientation _orientation;
UIScrollView *_scrollView;
UIImageView *_defaultImageView; //default,when no data,display default image
BOOL _needsReload;
CGSize _pageSize; //size of page
NSInteger _pageCount; //total page count
NSInteger _currentPageIndex;
NSRange _visibleRange;
NSMutableArray *_reusableCells; //UnseedCell
NSMutableArray *_inUseCells; //using Cell
CGFloat _minimumPageAlpha; //default is 1.0
CGFloat _minimumPageScale; //default is 1.0
id <SBPageFlowViewDataSource> _dataSource;
id <SBPageFlowViewDelegate> _delegate;
}
@property (nonatomic, assign) id <SBPageFlowViewDataSource> dataSource;
@property (nonatomic, assign) id <SBPageFlowViewDelegate> delegate;
@property (nonatomic, retain) UIImageView *defaultImageView;
@property (nonatomic, assign) FlowViewOrientation orientation;
@property (nonatomic, assign, readonly) NSInteger currentPageIndex;
@property (nonatomic, assign) CGFloat minimumPageAlpha;
@property (nonatomic, assign) CGFloat minimumPageScale;
- (void)reloadData;
- (UIView *)dequeueReusableCell;
- (UIView *)cellForItemAtCurrentIndex:(NSInteger)currentIndex;
- (void)scrollToNextPage;
@end
@protocol SBPageFlowViewDelegate<NSObject>
- (void)didReloadData:(UIView *)cell cellForPageAtIndex:(NSInteger)index;
@optional
- (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(SBPageFlowView *)flowView;
- (void)didSelectItemAtIndex:(NSInteger)index inFlowView:(SBPageFlowView *)flowView;
@end
@protocol SBPageFlowViewDataSource <NSObject>
// Return the number of views.
- (NSInteger)numberOfPagesInFlowView:(SBPageFlowView *)flowView;
- (CGSize)sizeForPageInFlowView:(SBPageFlowView *)flowView;
// Reusable cells
- (UIView *)flowView:(SBPageFlowView *)flowView cellForPageAtIndex:(NSInteger)index;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
scrollview +重用阴影缩放
共29个文件
jpg:6个
m:4个
h:3个
5星 · 超过95%的资源 需积分: 9 22 下载量 155 浏览量
2013-07-23
21:20:26
上传
评论
收藏 187KB ZIP 举报
温馨提示
scrollview +重用阴影缩放,适合初学者使用学习。感觉还是比较不错的
资源推荐
资源详情
资源评论
收起资源包目录
scrollview +重用阴影缩放.zip (29个子文件)
scrollview +重用阴影缩放
SBFlowView.xcodeproj
project.xcworkspace
contents.xcworkspacedata 155B
xcuserdata
baoyuanyong.xcuserdatad
UserInterfaceState.xcuserstate 17KB
pjk1129.xcuserdatad
UserInterfaceState.xcuserstate 20KB
project.pbxproj 16KB
xcuserdata
baoyuanyong.xcuserdatad
xcschemes
xcschememanagement.plist 482B
SBFlowView.xcscheme 3KB
xcdebugger
Breakpoints.xcbkptlist 9KB
pjk1129.xcuserdatad
xcschemes
xcschememanagement.plist 482B
SBFlowView.xcscheme 3KB
.DS_Store 6KB
SBFlowView
SBFlowView-Info.plist 1KB
main.m 340B
ViewController.m 3KB
images
4.jpg 20KB
3.jpg 21KB
6.jpg 24KB
1.jpg 21KB
2.jpg 16KB
5.jpg 16KB
AppDelegate.h 359B
SBFlowView-Prefix.pch 362B
SBPageFlowView.h 3KB
[email protected] 16KB
AppDelegate.m 2KB
Default.png 6KB
SBPageFlowView.m 20KB
[email protected] 18KB
ViewController.h 210B
en.lproj
InfoPlist.strings 45B
共 29 条
- 1
资源评论
- shihliangou2013-10-23不错,适合入门学习!
- freddyfei572015-01-27值得学习下~~~谢谢
baoyuanyong
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功