Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,48 @@
//
// KTThumbsView.h
// Sample
//
// Created by Kirby Turner on 3/23/10.
// Copyright 2010 White Peak Software Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol KTThumbsViewDataSource;
@class KTThumbsViewController;
@class KTThumbView;
@interface KTThumbsView : UIScrollView <UIScrollViewDelegate>
{
@private
BOOL thumbsHaveBorder_;
NSInteger thumbsPerRow_;
CGSize thumbSize_;
NSMutableSet *reusableThumbViews_;
// We use the following ivars to keep track of
// which thumbnail view indexes are visible.
NSInteger firstVisibleIndex_;
NSInteger lastVisibleIndex_;
NSInteger lastItemsPerRow_;
}
@property (nonatomic, assign) id<KTThumbsViewDataSource> dataSource;
@property (nonatomic, assign) KTThumbsViewController *controller;
@property (nonatomic, assign) BOOL thumbsHaveBorder;
@property (nonatomic, assign) NSInteger thumbsPerRow;
@property (nonatomic, assign) CGSize thumbSize;
- (KTThumbView *)dequeueReusableThumbView;
- (void)reloadData;
@end
@protocol KTThumbsViewDataSource <NSObject>
@required
- (NSInteger)thumbsViewNumberOfThumbs:(KTThumbsView *)thumbsView;
- (KTThumbView *)thumbsView:(KTThumbsView *)thumbsView thumbForIndex:(NSInteger)index;
@end