-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The description of FantasyView.h, some methods and delegates.
- Loading branch information
wxin9
committed
Jul 3, 2012
1 parent
5ea1a7d
commit 074e9ff
Showing
1 changed file
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |