Skip to content

Commit

Permalink
The description of FantasyView.h, some methods and delegates.
Browse files Browse the repository at this point in the history
  • Loading branch information
wxin9 committed Jul 3, 2012
1 parent 5ea1a7d commit 074e9ff
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@
FantasyView
===========

FantasyView is a horizontal tableview.
FantasyView is a horizontal tableview.

FantasyView.h:

#import <UIKit/UIKit.h>

@protocol FantasyViewDataSource;
@protocol FantasyViewDelegate;

@interface FantasyView : UIView

@property (nonatomic, retain) UITableView *tableView;
@property (nonatomic, assign) id<FantasyViewDataSource> dataSource;
@property (nonatomic, assign) id<FantasyViewDelegate> delegate;
@property (nonatomic, assign) NSInteger currentIndex;
@property (nonatomic, assign) BOOL pagingEnabled;

- (void)reloadData;
- (void)fantasyViewScrollToIndex:(NSInteger)index animation:(BOOL)animation;
- (UIView *)getViewInFantasyViewWithIndex:(NSInteger)index;

@end

@protocol FantasyViewDelegate <NSObject>

@optional
- (void)fantasyView:(FantasyView *)fanView selectIndex:(NSInteger)index;
- (void)fantasyView:(FantasyView *)fanView scrollToIndex:(NSInteger)index;

@end

@protocol FantasyViewDataSource <NSObject>

@required
- (CGFloat)fantasyView:(FantasyView *)fanView widthForIndex:(NSInteger)index;
- (NSInteger)numberOfIndexForFantasyView:(FantasyView *)fanView;
- (void)fantasyView:(FantasyView *)fanView setContentView:(UIView *)contentView ForIndex:(NSInteger)index;
- (UIView *)fantasyView:(FantasyView *)fanView targetRect:(CGRect)targetRect ForIndex:(NSInteger)index;

@end

0 comments on commit 074e9ff

Please sign in to comment.